Hi I am making a form in expression engine using safecracker and one of my fields called “date of birth” uses the date field type. The jQuery datapicker is being automatically added by expression engine but I can’t see how to add any of the options or formatting I would normally add to datepicker when making a field of this type.
My normal code:
$(function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd/mm/yy',
maxDate: new Date()
});
});The only option I can think of is to make this field a text input and add the datepicker myself in the template but this would remove EE’s date validation that it performs on this field type.
Is there anyway to add additional datepicker options to this field type?