verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
96 stars 73 forks source link

Time and Date Limits #1887

Open alexanderloewe opened 6 months ago

alexanderloewe commented 6 months ago

What are you trying to do?

Is there a way to militate the range of the date and the range of the time in the date and time field?

That only a date within the next 2 years can be selected, and not a past date?

For the time: For example, that only a time between 10 am and 2 pm can be rolled.

Bildschirmfoto 2024-05-16 um 18 08 35

What's your proposed solution?

Add the option to make only certain times and dates selectable.

Additional context

No response

engram-design commented 6 months ago

For Date and Time fields, this is available in Formie 3 for Craft 5, where you can use min and max input attributes to control the range for date and time inputs.

In Formie 2, it's not really possible to set these min/max values.

If you use the Flatpickr date/time picker, then there are other options