question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blank date required

See original GitHub issue

I am looking to see if this control can be used when a date can be entered or not depending on needs. In my case the user records the last date an event occurred, but it is possible that the event has not occurred before and should be blank. Currently the angularJS Model is not updated by clearing an input box:

<input required="false"  format="yyyy-MM-dd" type="text" min-view="date" date-time data-ng-model="last_action">{{last_action}}

Is there a way to allow the clearing of the input box to update the model?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:16

github_iconTop GitHub Comments

3reactions
mdedetrichcommented, Nov 11, 2015

+1

Ideally the plugin should detect if the field is optional, and if it is, then allow for blank/nullable fields

2reactions
spirantcommented, May 20, 2014

On further review it also appears that the date-picker is triggering an automated validation which prevents an input being left blank when saving a form. Any thoughts on how to allow this would be much appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error creating a List entry with blank date field from a MS Form
Solved: I have a MS Form to capture requests for a service. The form has several date fields, but are not mandatory as...
Read more >
How to Blank Date value in Date formula field?
Are you trying to create a field to hold the closed date? If yes then you can not use the formula field, you...
Read more >
setting blank value to date field - Salesforce Developers
Hello, I have a custom field TEXT__C Date. I set some date. its ok untill now. From the backed i want to reset...
Read more >
Checking if a non required date field is blank - ODK Forum
Hi all, trying to check if a non required date field is blank or rather has no value entered so I can use...
Read more >
Datepicker allow blank date submission - Stack Overflow
Is there a simple way we can allow submission of a blank date in addition to the normal date of the stated ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found