(function($) {
$(document).ready(function() {
if(typeof gform !== 'undefined'){
gform.addFilter( 'gform_datepicker_options_pre_init', function( optionsObj, formId, fieldId ) {
if ( formId == 15 && fieldId == 6 ) {
let newMin = new Date();
newMin.setDate(newMin.getDate() + 2 * 7);
optionsObj.minDate = newMin
}
return optionsObj;
});
}
let fundStart = $(".fund_start input");
let fundEnd = $(".fund_end input");
let pickup = $(".pickup_date input");
fundStart.on('change', function (){
if(fundStart.val()){
fundEnd
.datepicker('destroy')
.datepicker({
minDate: new Date(fundStart.val()), // min start date
dateFormat: "mm/dd/yy",
changeYear: true,
changeMonth: true,
});
}
})
});
})(jQuery);
To provide the best online user experience, Polly's Pies uses website cookies for performance analytics and remarketing. By continuing to browse this website, you accept the use of cookies and your browser location according to our Privacy Policy.