I have been trying to set the maxDate option following the suggestion here: http://support.advancedcustomfields.com/forums/topic/how-to-use-acf-datepicker-for-start-date-less-than-end-date-validation/
However, it’s not working. I have only started using ACF plugin. The acf-field-UNIQUEID is the “Field Name” I entered in the edit field group form correct? I used the field name date and inserted the code like this;
jQuery( ‘.acf-field-date .acf-date_picker input.input’ ).datepicker( ‘option’, ‘maxDate’, ‘0’ );
Max date being today. Thanks for your help.
Nice username btw 😉
Have you made sure that your script are being loaded?
The unique ID is not the field name tho. I believe it’s usually the field key (unless the field is a subfield). You can find the field key by ticking “show field keys” in the admin area of your field groups “screen options”. You can also make sure you got it right by looking at the source code of the datepicker HTML.. easiest is to use chromes inspector or maybe Firebug in firefox.