This will change all date fields to allow for easy month and year picking. The specific code will allow the user to select any year up to 10 years in the past and 40 years in the future. Change the values to extend the calendars date range.
Copy the below code to your Javascript section.
/* Date picker to allow for Month and Year */
$(document).on('knack-page-render.any'
, function(event, scene) {
$.datepicker.setDefaults({changeMonth: true,changeYear: true, yearRange: 'c-10:c+40'});
});
Commentaires