
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 07:00 AM
When the <sp-date-picker> element loads, changes, anything... I keep getting this error.
I'm in Kingston, Patch 2.
Wherever I'm using this date picker, I can't capture any dates.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 10:45 AM
Figured it out.
In the <sp-date-picker>, you NEED a field attribute, and it should (must?) be the same as your ng-model.
Once this is done, bam... no more errors and the date picker works fine.
Not sure when they added the necessity for a "field" attribute in the <sp-date-picker> directive, but alas you do!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2018 04:03 AM
Interesting. Not sure why binding the "field" attribute to the same as your ng-model didn't work, but I'm glad you got it working.
Mine still works too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2018 08:01 AM
Superb. For us this date picker broke after london upgrade. Now its working again after adding field attribute with same variable as ng-model.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 11:20 AM
Hi,
I got same issue when upgraded to orlando
may i know in which widget i need to add?
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 04:06 AM
Hi David,
I have the same problem with <sp-date-picker> but I still get the invalid error when I name field and ng-model the same. My directive looks like this :
<div class="form-group">
<label>Start Time</label>
<sp-date-picker field="data.mydatePicker" sn-include-time="true" ng-model="data.mydatePicker"></sp-date-picker>
</div>
Did you find other issues that could cause this invalid message ?
Thanks
Regards
Kim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 12:25 PM
I have run into this same issue. Were you able to find a work around or solution to it?