• Resolved spirituelehulp

    (@spirituelehulp)


    nice to see things in dutch but when i try to change the mindate with this code:

    jQuery(document).bind(‘gform_post_render’, function(){
    // destroy default Gravity Form datepicker
    jQuery(“#input_1_1”).datepicker(‘destroy’);
    // create new custom datepicker
    jQuery(“#input_1_1″).datepicker({ defaultDate: ‘+1d’, minDate: ‘+1d’, gotoCurrent: true, prevText: ”, showOn: ‘both’, buttonImage: ‘/wp-content/plugins/gravityforms/images/calendar.png’, buttonImageOnly: true });
    });

    It wont work anymore !!!
    is it possible to have multiple date fields that i can change the mindate and maxdate or noweekends all these kinds of stuff?
    and would be great if this could be in the dutch datepicker….

    best regards,
    johan verweij

    https://wordpress.org/plugins/gravityforms-nl/

Viewing 1 replies (of 1 total)
  • Reüel

    (@pronamic_reuel)

    I cannot reproduce this issue. The provided code still works with translated datepickers.

    Are you sure the ID of the datepicker field is “input_1_1”? You can use the “Web Inspector” or “Developer Tools” to find out the correct ID of the field you’re targeting. Duplicate your code and edit the ID of the field accordingly (the part after “#”), to use multiple datepickers.

    For details on the options you can use for datepickers, please see the jQuery UI documentation at http://api.jqueryui.com/datepicker/.

Viewing 1 replies (of 1 total)
  • The topic ‘change mindate or maxdate per date field…’ is closed to new replies.