How to customize date/time fields in gravity form?

I want to add a single date / time field in the gravity form. Also, I want to add a restriction on this date / time field, to not allow certain values within the time frame.

Is this feature possible in gravity forms?

Gravity Forms doesn’t include a field type like that, only individual field types for each data, one for Date and another for Time.

There’s a third-party add-on that adds a new field type for date/time, but it’s not receiving updates since long time ago, so maybe it’s not working with latest Gravity Forms. If you want to give it a try you can find it here: Date/Time Fields for Gravity Forms – WordPress plugin | WordPress.org

Additionally, you could use the gform_field_validation filter to run your own custom code to check the value and make the form fail validation if the value entered is not according to your requirements.

1 Like

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