Date picker changes

Hey there!

I created a ticket about this, but then found there is a form, so thought this might be easier.

I have a customer, how we are building a new page/form for that asked a question that I’ve never had before.

He wants to set the second date picker on the page, ID 22, so that you can only select dates in the future, and only Tuesday through Friday. No current or past dates should be selectable. Is this an option? I am pretty sure it’s not a native “thing” within Gravity Form. So not sure where to look next.

Any information is helpful.

Thanks! =)

Before I posted this, I found other posts talking about this, and referencing - gform_datepicker_options_pre_init - Gravity Forms Documentation

But I’m not sure were to add this content to the site. I’ve tried adding it using a plugin called WPCode, using JavaScript. But it doesn’t seem to work. So clearly I’m missing something!

Best way to include JavaScript snippets with Gravity Forms is our free Code Chest plugin. It makes sure the JS is output wherever your form is and executes it at the right time in the Gravity Forms rendering flow.

If you want to skip custom code altogether for customizing the Gravity Forms datepicker, we’ve got a plugin for that too:

Let me know what questions you have. :slightly_smiling_face:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.