Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time and Date Limits #1887

Open
alexanderloewe opened this issue May 16, 2024 · 1 comment
Open

Time and Date Limits #1887

alexanderloewe opened this issue May 16, 2024 · 1 comment

Comments

@alexanderloewe
Copy link

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants