For example I have a textfield
. The field is mandatory, only numbers are required and length of value must be 10. When I try to submit form with value which length is 5, the default error message appears: Please match the requested format
<input type="text" required="" pattern="[0-9]{10}" value="">
- How can I change HTML form validation errors default messages?
- If the 1st point can be done, is there a way to create some property files and set in that files custom error messages?