Replies: 2 comments 1 reply
-
No, that's not how patterns work. The browser does allow you to leave the field blank as long at it's not marked "required": Screencast.From.2025-10-06.17-34-57.mp4But use
|
Beta Was this translation helpful? Give feedback.
-
You didn't get it.I didn't sayvpattern should work as a subsitute for required. What I said was, that the pattern isn't enforced when the field is empty in the beginning. I.e. when I set the pattern to match hours and minutes, I could enter almost every nonsense and only when leaving the field a message was thrown. Once I set a value, the pattern was enforced as I typed. However, setting 'time' as type makes sense -- I wonder why it's missing from my source -- thanks for the hint. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given a Time field with a pattern of
[0-2][0-9][:-][0-5][0-9]
doesn't work while empty. Only when a value is set for the form field, the pattern works, and it works particularly well, but as long as you deal with an empty field, it doesn't look like that.Just saying …
Beta Was this translation helpful? Give feedback.
All reactions