Date Picker for following month/s [RESOLVED]

Is there available code to change this default behavior? ( see below, previous help request) Perhaps show just ONE/the Current month at a time only? The way it is, it disallows the ability to book anything for the next month…
Let me know, please. THANK YOU! Gravity is amazing.

" When the user is on November month, October and December dates are disabled. The user needs to navigate to December in the datepicker to select dates on December"

You can hook into the filter gform_datepicker_options_pre_init in order to set an option that will hide dates for the previous and next month. The following script will accomplish this on all datepicker fields.

gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
    optionsObj.showOtherMonths = false;
    return optionsObj;
} );

Hi @ohsusannah,

Dario from Gravity Wiz! You can try Limit Dates Perk: Gravity Forms Limit Dates | Gravity Perks by Gravity Wiz

This plugin allows you to limit the selectable dates in your Gravity Forms Datepicker fields. This plugin gives you granular control to manage the selectable date range with an easy-to-use user interface.

I hope this helps!


Thank you very much! Perfect! This code goes in a hidden HMTL field within the form, in case any other users need this info! Dont forget to add script tags!