Skip to main content
Nintex Community Menu Bar

calendar icon past 2007

  • October 12, 2017
  • 2 replies
  • 7 views

Forum|alt.badge.img+7

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?

209612_pastedImage_1.png

209613_pastedImage_2.png

2 replies

Forum|alt.badge.img+7
  • Author
  • October 13, 2017

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


Forum|alt.badge.img+7
  • Author
  • October 13, 2017

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.