# Error message content

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

Area: Forms. Evidence behind the answer: Strong. Last checked November 12, 2026.
Page: https://uxreference.com/forms/error-messages

## The answer

Say which field is wrong and how to fix it, right next to the field.

- **Settled, WCAG AA.** Say which field is wrong and what the problem is, in words. (https://uxreference.com/forms/error-messages#rule-1)
- **Settled, WCAG AA.** When you know the fix, say it. (https://uxreference.com/forms/error-messages#rule-2)
- **Strong.** Show each error next to its field, not only at the top or bottom. (https://uxreference.com/forms/error-messages#rule-3)

## The problem

When input is rejected, people need to know which field, what is wrong, and how to fix it, at the place they will fix it.

## How to decide

None. The sources do not describe more than one correct practice that depends on context.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Say which field is in error and describe the problem in words.

- Applies when: Always.
- Based on: Standard or law
- Principle: Help people recover from errors

Why: WCAG 2.2 level A. Reopened and checked in the pilot.

Sources: [Understanding SC 3.3.1 Error Identification (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html)

Link: https://uxreference.com/forms/error-messages#rule-1

#### Rule 2. Settled, WCAG AA

When the fix is known, say how to fix it.

- Applies when: The system can tell what a correct value would be, and saying so does not weaken security.
- Based on: Standard or law
- Principle: Help people recover from errors

Why: WCAG 2.2 level AA (3.3.3), with an exception where a suggestion would compromise security or purpose. Reopened and checked.

Sources: [Understanding SC 3.3.3 Error Suggestion (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/error-suggestion.html)

Link: https://uxreference.com/forms/error-messages#rule-2

#### Rule 3. Strong

Show each message next to the field it is about, not only at the top or bottom of the form.

- Applies when: Always.
- Based on: Research
- Principle: Make controls match their effects

Why: A controlled online study (303 people) found messages near the field were found faster and led to fewer repeat errors than messages at the top or bottom; practitioner sources agree. Skeptical pass: total completion time rarely differed, the forms were short, and a 42-person study found no difference between top and under-field messages, which is a null result, not a contrary one. Held at 4.

Sources: [User-friendly locations of error messages in web forms: Put them on the right side of the erroneous input field](https://edoc-vmtest.ub.unibas.ch/21658/1/iwc24-0107.pdf); [Usable error message presentation in the World Wide Web: Do not show errors right away](https://edoc-vmtest.ub.unibas.ch/8009/1/iwc19-0330.pdf); [Comparing the Effectiveness of Alternative Approaches for Displaying Edit-Error Messages in Web Forms](https://www.bls.gov/osmr/research-papers/2005/pdf/st050010.pdf); nng-n.d.-form-error-guidelines; [Error message component](https://design-system.service.gov.uk/components/error-message/); [Form component and guidance (USWDS)](https://designsystem.digital.gov/components/form/)

Link: https://uxreference.com/forms/error-messages#rule-3

#### Rule 4. Moderate

Do not show form errors in a dialog that covers the form.

- Applies when: Always.
- Based on: Research
- Principle: Keep people in control

Why: One controlled study found a dialog listing all errors produced about three times the repeat errors of in-form messages; a second (100 students) found in-form messages about a second faster. Two studies, one with a small effect, so 3.

Sources: [Usable error message presentation in the World Wide Web: Do not show errors right away](https://edoc-vmtest.ub.unibas.ch/8009/1/iwc19-0330.pdf); [hofseth-2019-popup-vs-inform](https://core.ac.uk/download/335055254.pdf)

Link: https://uxreference.com/forms/error-messages#rule-4

#### Rule 5. Moderate

Describe what is wrong with this particular input. Do not use one generic message for every way a field can fail.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Help people recover from errors

Why: Baymard reports this from checkout testing without participant numbers; NN/g, Atlassian and GOV.UK agree. No controlled web-form study isolates wording, so 3.

Sources: [Adaptive validation error messages (checkout)](https://baymard.com/blog/adaptive-validation-error-messages); nng-n.d.-form-error-guidelines; [Error messages (content guidelines)](https://atlassian.design/foundations/content/designing-messages/error-messages); [Error message component](https://design-system.service.gov.uk/components/error-message/)

Link: https://uxreference.com/forms/error-messages#rule-5

#### Rule 6. Moderate

Tie the message to its field in code so that it is read out with the field.

- Applies when: Always.
- Based on: Convention
- Principle: Work for everyone

Why: A W3C sufficient technique and what GOV.UK and Polaris do. It is one way to meet 3.3.1, not itself required, so 3.

Sources: [ARIA21: Using aria-invalid to Indicate An Error Field](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA21); [Text field (Polaris, from GitHub source docs)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/text-field.mdx); [Error message component](https://design-system.service.gov.uk/components/error-message/)

Link: https://uxreference.com/forms/error-messages#rule-6

#### Rule 7. Moderate

Keep what the person typed when showing an error.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Keep people in control

Why: GOV.UK says not to clear fields; no dissent found. One source only so far, kept at 3 pending [Preserving input after an error](https://uxreference.com/forms/preserve-input), where WCAG 3.3.7 also bears.

Sources: [Error message component](https://design-system.service.gov.uk/components/error-message/)

Link: https://uxreference.com/forms/error-messages#rule-7

#### Rule 8. Moderate

On sign-in and password reset, do not reveal whether an account exists.

- Applies when: The message could confirm that an account exists.
- Based on: Practitioner research
- Principle: Prevent errors

Why: Baymard's caveat to its own advice, matching the security exception in WCAG 3.3.3. Rated 3.

Sources: [Adaptive validation error messages (checkout)](https://baymard.com/blog/adaptive-validation-error-messages); [Understanding SC 3.3.3 Error Suggestion (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/error-suggestion.html)

Link: https://uxreference.com/forms/error-messages#rule-8

#### Rule 9. Weak

Do not word the message as blame.

- Applies when: Always.
- Based on: Convention
- Principle: Speak the person’s language

Why: Design-system advice without evidence; the only studies measured preference for apologies in games with teenagers, and about a quarter found them awkward. Rated 2.

Sources: [Error messages (content guidelines)](https://atlassian.design/foundations/content/designing-messages/error-messages); nng-n.d.-form-error-guidelines; [Computer Apology: The Effect of the Apologetic Feedback on Users in Computerized Environment](https://core.ac.uk/download/480559622.pdf)

Link: https://uxreference.com/forms/error-messages#rule-9

## Accessibility requirements

- WCAG 2.2, 3.3.1 Error Identification (A) and 3.3.3 Error Suggestion (AA). (https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html)
- WCAG 2.2, 4.1.3 Status Messages (AA) when the message appears without a focus change (see [When to validate a form field](https://uxreference.com/forms/validation-timing)). (https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html)
- W3C technique ARIA21: mark the field invalid after a failed check and point it to the message. A technique, not a requirement. (https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA21)

## Common mistakes

- 'Invalid input' with no reason ([rule 5](https://uxreference.com/forms/error-messages#rule-5)).
- One dialog listing every error ([rule 4](https://uxreference.com/forms/error-messages#rule-4)).
- Messages only at the top of a long form ([rule 3](https://uxreference.com/forms/error-messages#rule-3)).

## Still open

- Wording: 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.
- Which 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.
- Tone and apology: preference data only.

## Related problems

- [When to validate a form field](https://uxreference.com/forms/validation-timing): Check on submit, and do not show an error until people have finished the field.
- [Error summaries](https://uxreference.com/forms/error-summary): After a failed submit, list every error at the top, each linking to its field, and keep the message at each field too.
- [Preserving input after an error](https://uxreference.com/forms/preserve-input): Never make people type something twice. Keep what they entered through errors and back steps.
- [Log in](https://uxreference.com/accounts/log-in): Never block paste or password managers, and slow repeated attempts instead of locking people out.

## Sources

- [Understanding SC 3.3.1 Error Identification (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html). W3C WAI (WCAG 2.2), n.d., normative standard (Understanding document, informative).
- [Understanding SC 3.3.3 Error Suggestion (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/error-suggestion.html). W3C WAI (WCAG 2.2), 2026, normative standard (Understanding document, informative).
- [User-friendly locations of error messages in web forms: Put them on the right side of the erroneous input field](https://edoc-vmtest.ub.unibas.ch/21658/1/iwc24-0107.pdf). Seckler, Tuch, Opwis, Bargas-Avila, 2012, survey of 200 online shop forms plus between-subjects online experiment (simulated clothing shop).
- [Usable error message presentation in the World Wide Web: Do not show errors right away](https://edoc-vmtest.ub.unibas.ch/8009/1/iwc19-0330.pdf). Bargas-Avila, Oberholzer, Schmutz, de Vito, Opwis, 2007, two between-subjects online experiments (demographic form with built-in unavoidable errors).
- [Comparing the Effectiveness of Alternative Approaches for Displaying Edit-Error Messages in Web Forms](https://www.bls.gov/osmr/research-papers/2005/pdf/st050010.pdf). William Mockovak (Bureau of Labor Statistics, Office of Survey Methods Research), 2005, talk-aloud usability study, each participant used all three message approaches (counterbalanced).
- Error-message guidelines for forms. Nielsen Norman Group, n.d..
- [Error message component](https://design-system.service.gov.uk/components/error-message/). GOV.UK Design System, n.d., component documentation.
- [Form component and guidance (USWDS)](https://designsystem.digital.gov/components/form/). U.S. Web Design System, n.d., component documentation.
- [hofseth-2019-popup-vs-inform](https://core.ac.uk/download/335055254.pdf). n.d., between-subjects experiment (group by student-number parity, not random).
- [Adaptive validation error messages (checkout)](https://baymard.com/blog/adaptive-validation-error-messages). Baymard Institute, n.d., practitioner research (e-commerce checkout usability testing and site benchmark; method not detailed on the page).
- [Error messages (content guidelines)](https://atlassian.design/foundations/content/designing-messages/error-messages). Atlassian Design System, n.d., content guidance.
- [ARIA21: Using aria-invalid to Indicate An Error Field](https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA21). W3C WAI (WCAG 2.2 Techniques), n.d., normative-adjacent technique (informative).
- [Text field (Polaris, from GitHub source docs)](https://raw.githubusercontent.com/Shopify/polaris/main/polaris.shopify.com/content/components/selection-and-input/text-field.mdx). Shopify Polaris, n.d., component documentation.
- [Computer Apology: The Effect of the Apologetic Feedback on Users in Computerized Environment](https://core.ac.uk/download/480559622.pdf). Akgun, Cagiltay, Tzeng, 2005, between-subjects experiment, word-guessing game, apologetic vs generic feedback; questionnaire and logs.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
