Error message content

A rejected form often fails to say which field is wrong, what is wrong with it, or how to fix it.

A form fails to submit. A generic message at the top leaves the person checking every field. A message next to the phone field says what is wrong and how to fix it, and the fix takes a moment.

The answer

Say which field is wrong and how to fix it, right next to the field. As strong as the weakest rule behind it: strong.

The other rules

  • Don’t show form errors in a dialog that covers the form.
  • Describe what’s wrong with this input. Don’t use one generic message for every problem.
  • Link each error to its field in code so screen readers read them together.
  • Keep what people typed when you show an error.
  • On sign-in and password reset, don’t reveal whether an account exists.
  • Don’t blame the person.

Accessibility

Open questions

  • OpenWording: no controlled web-form study isolates what a message says. A large randomized trial of clearer error messages exists for programming exercises, read as an abstract only.
  • OpenWhich side of the field. The one study found messages to the right preferred; that depends on layout and reading direction and is not stated as a rule.
  • OpenTone and apology: preference data only.
Checked November 12, 2026

Sources