Limit dates conditional

Hello, on my form, I have two date selectors, and the gap between the dates cannot exceed 7 days. Therefore, I am using “Gravity Forms Limit Dates”. The issue is that I would like the gap between the dates to be 30 days instead of 7 if a certain checkbox is checked. And if it is unchecked, the gap should revert to 7 days. Is this possible?

Hi Enzo,

This may require some custom code to get done. If you have an active Gravity Perks license, you can contact us via our support form so we can assist you further.

That said, another solution that may work without custom codes will be to use two dates field for the end date and set up one to have a gap of 7 days with the start date field and the other to have a gap of 30 days. You can then set up conditional logic on these date fields to show one when the checkbox is checked and also show the other when the checkbox choice is not selected.

Best,

I work for a client who uses your plugin. I think providing a solution directly here would be beneficial for everyone, that’s the purpose of a forum. And thank you for your advice, but this technique is invasive. :slight_smile:

Hi Enzo,

I understand it will be beneficial to post the solution here, but we currently do not have the code snippet to do this. A request for a custom snippet, has to be forwarded to our developers who will work on it, and this can be done when you submit a support ticket.

Best,

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