You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even with a specific date, this will not work because the js range constraint has some isNaN() test, which will fail on any date string.
I've fiddled around with the code a bit and hack something that will allow dates to pass correctly, but only if the input field is of type "date". There are more issues, especially there is no way for the moment to remember the original (as in Symfony FormType) type of the field, so there is no distinction between DateTime, Date and Time.
I have a symfony form which includes a DateType for a birthday field of my entity. The entity has an annotated Range constraint:
This will work in symfony, but during client side validation, any date entered is invalid. Am I doing something wrong, or is this not supported?
The text was updated successfully, but these errors were encountered: