Customizable error message for pattern fail case

stromb0li

Active member
When using the pattern attribute on a form option for validation, can you please add the ability to have a "pattern-message" or "pattern-error" attribute, so that an error message can be more meaningful for the end-user?

For example, today if the "pattern" match validation fails, the error doesn't give the end user any idea of what is wrong with their input.
1694408516192.png

Thank you!
 
Upvote 4
Yes... it should at the very least be giving a "hint" to the pattern matching required. Probably simple oversight in the validation processing.
 
Most folks won't know how to read regex so displaying the pattern match might be tricky. Using a defined string IMO would be most user friendly.
 
Top Bottom