Support

Account

Home Forums General Issues ACF Date Picker

Helping

ACF Date Picker

  • 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.

  • Hi @acf2015

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘ACF Date Picker’ is closed to new replies.