WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: form validation and error handling. (tech gurus)

for

From: Meacham, Steve - FSA, Kansas City, MO
Date: Sep 14, 2017 9:14AM


I've found that the most robust validation practice is to validate in the browser (HTML5 and/or JavaScript) and then server-side (because the browser can't be trusted). The first provides the most usability, and the later the most security. If one and only one were an option, chose the server-side and do what it takes to keep it usable enough.

To do this, the server-side validation would need to re-present the page that contained validation error, but incorporate additional human-friendly cues such as error messages, instructions, and possibly even scrolling the page and setting the focus automatically.