WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form validation - on submit or on each required field

for

From: Clark, Michelle - NRCS, Washington, DC
Date: Jun 26, 2014 8:36AM


My preference is to validate at the time of inputting the information. That way, once a user gets to the end, the form is correct and can be submitted.

Michelle

-----Original Message-----
From: <EMAIL REMOVED> [mailto: <EMAIL REMOVED> ] On Behalf Of Liko, Todd
Sent: Thursday, June 26, 2014 10:06 AM
To: ' <EMAIL REMOVED> '
Subject: [WebAIM] Form validation - on submit or on each required field

Hello all.

I am seeking your thoughts on which type of form validation is preferred. A form with required fields (with proper notifications) can be validated server side when submitting the form or each field can be validated while completing the form.

With validation on submit, if there are errors, the form is refreshed with the focus returning to the top of the form where the errors are listed. When validating each field while completing the form, the user is notified of the error right away and focus is returned to the field.

In my opinion, both methods meet WCAG 2.0. However, keeping usability in mind, is there a preference to which method is used.

_______
Todd Liko
Communications Advisor | Conseiller en communications
Web Services | Services Web
Communications and Marketing | Communications et Marketing
427 Laurier Avenue West (AEAD), Ottawa ON K1A 0N5
427 Avenue Laurier Ouest (AEAD), Ottawa (Ontario) K1A 0N5
e-mail / courriel: <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
telephone / téléphone: 613-949-9425 | fax / télécopieur: 613-949-2386
blackberry: 613-796-6375
Government of Canada | Gouvernement du Canada

This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.