How to Review Web Form Error MessagesHow to Review Web Form Error Messages

How to Review Web Form Error Messages

Vague form errors leave people guessing which field to fix and can force them to repeat work. Design errors to identify the location, explain the issue, and suggest a correction while preserving as much valid input as possible.

Associate errors with the relevant field

Instead of “There is an error,” say something like “Enter a domain after the @ in your email address.” If you show a summary at the top, link each message to its field. When a submission changes or redraws the page, verify that keyboard and screen-reader users are informed that errors appeared.

Avoid clearing unrelated input

Losing valid entries after a failed submission adds unnecessary effort. Keep fields that can safely be retained and direct focus to the problem where appropriate. Treat sensitive fields such as passwords and payment details separately, balancing usability with security.

Explain formats and protect privacy

Describe formats such as postal codes or dates in labels or examples before an error occurs. Avoid messages that reveal whether an account exists or expose internal system details. Do not rely on color alone; use text and another cue, and test the form with keyboard navigation.

Before release

  • Each error is associated with the relevant field.
  • The message explains what is wrong and how to fix it.
  • A summary can take the user to the field.
  • Valid input is preserved without retaining sensitive data unnecessarily.
  • Keyboard and assistive-technology behavior has been checked.