WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form validation on blur or on form submission

for

From: Swift, Daniel P.
Date: Jun 6, 2018 7:04AM


Steve:

A number of years ago we did some research on forms. In general, the shorter the forms, the better. I believe that we discovered that label on top of field was better, but we still use them next to each other to lessen the scrolling. On mobile and magnification, this changes to a single column of labels and fields.

We also do on-blur validation with validation occurring server-side in case JS is disabled and for sanitation. Even though I'm a technical person, I can speak on a non-technical level -- I've filled out many forms and find it incredibly frustration when an error is returned after post-back. The site owner gets extra fist-shaking if they've also cleared out part of the form as that invariably leads to a second submission complete with a second error.

Hope that helps!

Dan Swift
Senior Web Specialist
Enterprise Services
West Chester University
610.738.0589