cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

calendar icon past 2007

Jump to solution

We have a form that asks for DOB. When the user clicks on the calendar icon to change the date, it only goes back to 2007. If we choose a date in 2007 and then open the icon back up it will then show back to 1997 and will keep bumping back 10 years each time you do that. Is there any way to make more years show up from the beginning?

0 Kudos
Reply
2 Replies
Workflow Hero

Re: calendar icon past 2007

Jump to solution

We contacted Nintex Support and received this answer. 

Yes, unfortunately the OOB Calendar setup only spans +/- 10 years.  You can use this to resolve the issue you are having.  I tested it and it works for me.

 

NWF$.datepicker.setDefaults({

yearRange: "1900:2015"

});

 

Expand the date range to what you want to show under Form Settings > Custom JavaScript

0 Kudos
Reply
Workflow Hero

Re: calendar icon past 2007

Jump to solution

I found the better way to do it is 

NWF$.datepicker.setDefaults({

yearRange: "-100:+0"

});

This will have the calendar icon drop down start at the current year and always go back 100 years. 

Reply