Search code examples
wordpressdate-rangegravity-forms-plugin

Gravity forms Limit Date range


Hi there I want to limit the date range of a datepicker with the "dropdown" "date input type". I want to be able to set the start and end date manually. I am using version 1.8.5


Solution

  • Gravity Forms uses the jQueryUI Datepicker so you can use the minDate and maxDate options to restrict the date range.

    There's also a plugin (I'm the plugin author) that allows you to set the date range in the edit field options, if you don't want to code it yourself or you want to study how it's done.