When to validate a form field

People want to know a field is wrong before they move on, but an error that appears while they are still typing interrupts them.

Two email fields. In the first, an error appears on the first keystroke while the person is still typing. In the second, no error appears until they press Continue, and it disappears as soon as the address is valid.

The answer

Check on submit, and do not show an error until people have finished the field. As strong as the weakest rule behind it: moderate.

The other rules

In every case

  • When a field fails a check, say which field and what’s wrong, in words.
  • If focus doesn’t move to an error message, make sure screen readers announce it.
  • Don’t move focus, submit or open anything just because a value changed, unless you said you would.
  • If a field takes only one format, state it before people type, in text that stays visible.

While people type

When they leave a field

Once a field shows an error

When they submit

Accessibility

Open questions

  • OpenFirst entry: validate when the person leaves a field, or only on submit? The only controlled study read in full found more repeat errors when errors appeared on leaving the field (bargas-avila-2007-error-timing, 2007, desktop, students). A practitioner test found the opposite against a submit-only control (wroblewski-2009-inline-validation, n=22). A usability study found no difference (). No study tests "show errors late, clear them early", which is what most design systems now do.
  • OpenPhones: two abstracts report that feedback before submit worked best on Arabic smartphone forms (). Full text not read.
  • OpenScreen reader users: no study found. Primer says to avoid live regions for field errors; Vercel says to announce them politely. WCAG requires only that they can be announced.
  • OpenDoes a disabled submit control hurt? Design systems disagree and no study was found. To be settled in Submit button state.
Checked November 11, 2026

Sources