Timeline for How can I change or remove HTML form validation default error messages?
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 16, 2019 at 23:39 | comment | added | albert | this will most assuredly fail a11y | |
| Apr 11, 2019 at 17:49 | comment | added | Ken Lyon |
I think the idea with the title attribute is to describe the requirement like "Enter a 10-digit number." rather than an error like "This is not a valid number". When describing the requirement, there is no problem with the same text appearing both in mouse hover and in the validation error message. (I'm not saying my wording is the best, I know it could be argued whether or not to say "Enter..." vs. "Value must be..." etc.)
|
|
| Aug 23, 2015 at 22:33 | comment | added | OdraEncoded | Title is also used as the tooltip text on mouse hover, so this is probably the best approach. | |
| Mar 2, 2015 at 19:30 | comment | added | fotijr | Title is also used as the tooltip text on mouse hover, so I would stay away from this approach. | |
| Mar 26, 2014 at 8:35 | comment | added | Daan | When I set a title to "foo" I get "Please match the requested format. foo", so this won't work for me | |
| Oct 8, 2012 at 19:32 | comment | added | bohney | Nice answer, but be careful about backward (or even current) compatibility here. | |
| S Oct 8, 2012 at 19:25 | review | Late answers | |||
| Oct 8, 2012 at 19:32 | |||||
| S Oct 8, 2012 at 19:25 | review | First posts | |||
| Oct 8, 2012 at 19:32 | |||||
| Oct 8, 2012 at 19:23 | history | answered | HTF | CC BY-SA 3.0 |