Idea Summary
Declarative options for providing a pattern and an error message for mismatches on Page Items like email addresses and phone numbers.
Use Case
While there are subtypes for Page Items like Phone and Email, these do not allow the developer to customize the pattern or message. Currently the Phone type does not validate a pattern but if provided with a Custom Attribute “pattern=”my custom format here" it will validate it. However the error message (client side validation) reads “Please match the requested format” which I believe it the default browser message.
It would be nice to have declarative options for both the pattern to match and the message displayed.
Preferred Solution (Optional)
In the Item attributes, under Validation, add a Pattern (to match) attribute and if entered also an Message on Match Error attribute.
and/or
Add some more builtin options to the list of subtypes that do client side validation.