Is it possible to limit the dates that can be selected in a date input?
For example, set date fields so that the user can only select dates in the future, or conversely, the past?
Is it possible to limit the dates that can be selected in a date input?
For example, set date fields so that the user can only select dates in the future, or conversely, the past?
Yes. You can add restrictions to your date picker using this filter:
https://docs.gravityforms.com/gform_datepicker_options_pre_init/
If you don’t want to touch any code and take even more control over how your dates are limited, check out my Limit Dates plugin:
https://gravitywiz.com/documentation/gravity-forms-limit-dates/
We covered limiting to future and past dates specifically in this walk-through:
https://gravitywiz.com/how-to-require-a-future-or-past-date-with-gravity-forms-date-picker/