Hi, I use ‘gform_datepicker_options_pre_init’ to hide certain days on the date picker but it is no longer working, it was before the new update, even tried from the documentation with no luck.
There are no js or console errors. seems like to me the documentation might be slightly out of date for the new data pickers
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
if ( formId == 1 && fieldId == 7 ) {
optionsObj.firstDay = 1;
optionsObj.beforeShowDay = jQuery.datepicker.noWeekends;
}
return optionsObj;
});