Open chrismlusk opened 1 year ago
Just want to confirm if you're using the Date Picker (Flatpickr), or just the browser-native date input?
I do have the Date Picker disabled. With it enabled, Flatpickr does its thing to normalize the value, so no error message. But, I would prefer not to use Date Picker.
So the main issue with the non-Date Picker option is that this is a browser-native date input. The value shown is constrained to match the users browser language setting. From what I can tell, there's no way to change this. This is where Flatpickr comes in for a cross-browser and feature-rich date picker.
As for the client-side validation message that's being shown, that would be bouncer.js's interpretation of what an invalid date is. The error message could maybe do some tweaking to a generic "Please provide a valid date", but it indeed does match only years 1900-2099. I suppose it's only a problem we have to maybe deal with in 77 years.
Describe the bug
I have a Date/Time field configured to present the date as
MM/DD/YYYY
, but I noticed while testing junk values that the error message is asking forYYYY-MM-DD
.Also, it seems that any year < 1900 or >= 2100 triggers the pattern mismatch error, FWIW.
Steps to reproduce
Form settings
Craft CMS version
4.3.10
Plugin version
2.0.23
Multi-site?
No response
Additional context
No response