# 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.

Area: Forms. Evidence behind the answer: Moderate. Last checked November 11, 2026.
Page: https://uxreference.com/forms/validation-timing

## The answer

Check on submit, and do not show an error until people have finished the field.

- **Moderate.** Check every field on submit, whatever ran before, and check again on the server. (https://uxreference.com/forms/validation-timing#rule-5)
- **Moderate.** Don’t show an error before people finish a field: not on entering it, not on the first keystroke, and not for fields they haven’t reached. (https://uxreference.com/forms/validation-timing#rule-6)

## The problem

People need to know a field is wrong before they move on, without being interrupted while they are still typing.

## How to decide

Always check on submit, describe errors in words, announce them, and never move focus because a value changed. If the field takes one format, say so first. While someone is typing a first value, show no error, unless the field has rules they could not guess, in which case show progress against those rules. When they finish a first value, wait for submit (leaving-the-field checks are unsettled). Once a field shows an error, re-check as they edit and clear the error the moment it is fixed.

## 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).

### In every case

#### Rule 1. Settled, WCAG AA

When a field fails a check, say which field it is and describe the problem in words.

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

Why: Required by WCAG 2.2 at level A or AA, so rated 5 whatever the research says. All three criteria were reopened and checked.

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/validation-timing#rule-1

#### Rule 2. Settled, WCAG AA

When an error message appears and focus does not move to it, expose it so assistive technology announces it without moving focus.

- Applies when: An error is shown while focus stays where it was.
- Based on: Standard or law
- Principle: Work for everyone

Why: Required by WCAG 2.2 at level A or AA, so rated 5 whatever the research says. All three criteria were reopened and checked.

Sources: [Understanding SC 4.1.3 Status Messages (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html)

Link: https://uxreference.com/forms/validation-timing#rule-2

#### Rule 3. Settled, WCAG AA

Do not move focus, submit the form, or open anything new just because a field's value changed or was checked, unless the person was told beforehand.

- Applies when: Always.
- Based on: Standard or law
- Principle: Keep people in control

Why: Required by WCAG 2.2 at level A or AA, so rated 5 whatever the research says. All three criteria were reopened and checked.

Sources: [Understanding SC 3.2.2 On Input (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/on-input.html)

Link: https://uxreference.com/forms/validation-timing#rule-3

#### Rule 4. Strong

If a field accepts only one format, state that format before the person types, in text that stays available.

- Applies when: The system accepts only one format.
- Based on: Research
- Depends on: How strict the format is
- Principle: Prevent errors

Why: One controlled experiment (n=166) found far fewer errors when the format rule was stated up front than when it was not; a second study applied the same guideline in a bundle that cut failed submits. Lab tasks with artificial rules, so 4, not 5.

Sources: [Enhancing online forms: use format specifications for fields with format restrictions to help respondents](https://doc.rero.ch/record/301906/files/iwc23-0033.pdf); [Designing Usable Web Forms: Empirical Evaluation of Web Form Improvement Guidelines](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/42513.pdf); [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html)

Link: https://uxreference.com/forms/validation-timing#rule-4

### While people type

#### Rule 6. Moderate

Do not show an error for a field the person has not finished. Not when they enter it, not on the first keystroke, and not for a required field they have not reached yet.

- Applies when: The person has not finished the field yet.
- Based on: Practitioner research
- Depends on: State of the field
- Principle: Keep people informed

Why: One practitioner test with a published method, consistent practitioner guidance, and browser behavior that ignores length limits until the person edits. Atlassian and Apple describe earlier checks for some fields. No controlled study isolates it, so 3.

Sources: [Inline Validation in Web Forms](https://alistapart.com/article/inline-validation-in-web-forms/); [Inline form validation (public article)](https://baymard.com/blog/inline-form-validation); nng-n.d.-form-error-guidelines; [A Complete Guide To Live Validation UX](https://smashingmagazine.com/2022/09/inline-validation-web-forms-ux/); [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/); [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [HTML Living Standard, constraint validation (form control infrastructure)](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constraint-validation); [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)

Link: https://uxreference.com/forms/validation-timing#rule-6

#### Rule 13. Weak

Do not block or silently drop characters as the person types. Accept the input, then explain what is wrong with it.

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

Why: One company guideline plus GOV.UK's report that number inputs silently dropped letters. Guidewire's phone field restricts entry to digits. Rated 2.

Sources: [Web Interface Guidelines (Vercel), optimistic update and feedback items](https://vercel.com/design/guidelines); [Why the GOV.UK Design System team changed the input type for numbers](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/)

Link: https://uxreference.com/forms/validation-timing#rule-13

#### Rule 10. Weak

For a field whose rules people cannot guess (a new password, a name that must be unused), show which rules are met as the person types.

- Applies when: The field has several rules, or a check only the server can make.
- Based on: Practitioner research
- Principle: Keep people informed

Why: Practitioner guidance agrees, but USWDS is retiring its own live checklist after screen reader and magnifier users did not notice it. Rated 2.

Sources: nng-n.d.-form-error-guidelines; [A Complete Guide To Live Validation UX](https://smashingmagazine.com/2022/09/inline-validation-web-forms-ux/); [Inline Validation in Web Forms](https://alistapart.com/article/inline-validation-in-web-forms/); [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Text fields (Human Interface Guidelines)](https://developer.apple.com/design/human-interface-guidelines/text-fields.md); [Validation component (requirement checklist)](https://designsystem.digital.gov/components/validation/)

Link: https://uxreference.com/forms/validation-timing#rule-10

#### Rule 11. Weak

Confirm that a value is accepted only where the person cannot tell for themselves (availability, several rules). Do not confirm simple fields.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Leave out what is not needed

Why: Sources split. Baymard favors success marks; Wroblewski's participants were unsure what a check mark meant; Silver argues they give false reassurance. Rated 2.

Sources: nng-n.d.-form-error-guidelines; [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Inline form validation (public article)](https://baymard.com/blog/inline-form-validation); [Inline Validation in Web Forms](https://alistapart.com/article/inline-validation-in-web-forms/); [The problem with live validation and what to do instead](https://adamsilver.io/blog/the-problem-with-live-validation-and-what-to-do-instead); [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/)

Link: https://uxreference.com/forms/validation-timing#rule-11

### When they leave a field

#### Rule 9. Unsettled

Whether to show an error when the person leaves a field on first entry, before they submit, is unsettled.

Until the evidence settles, use this default: Validate on submit only. Add a check on leaving the field only if testing on your own form shows it helps.

- Applies when: The person is leaving the field for the first time and no error is shown yet.
- Based on: Research
- Depends on: State of the field
- Principle: Keep people informed

Why: Evidence points both ways. See open questions. Rated 1.

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); [Inline Validation in Web Forms](https://alistapart.com/article/inline-validation-in-web-forms/); [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); [Error Messages Timing and Graphical Presentation for Smartphones Arabic Forms](https://www.paluniv.edu.ps/eng/?p=140533); [Help users to recover from validation errors (Validation pattern)](https://design-system.service.gov.uk/patterns/validation/); [Error message component](https://service-manual.nhs.uk/design-system/components/error-message); [The problem with live validation and what to do instead](https://adamsilver.io/blog/the-problem-with-live-validation-and-what-to-do-instead); [Inline form validation (public article)](https://baymard.com/blog/inline-form-validation); nng-n.d.-form-error-guidelines; [Forms pattern and Form component usage/accessibility pages (Carbon)](https://carbondesignsystem.com/patterns/forms-pattern/); [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/); [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Forms pattern (Atlassian Design System)](https://atlassian.design/patterns/forms/)

Link: https://uxreference.com/forms/validation-timing#rule-9

### Once a field shows an error

#### Rule 7. Moderate

Once a field is showing an error, check it again as the person edits it and remove the error as soon as the value is valid.

- Applies when: The field is showing an error.
- Based on: Practitioner research
- Depends on: State of the field
- Principle: Keep people informed

Why: Consistent across practitioner research and five design systems, with no dissent found. No controlled study, so 3.

Sources: [Inline form validation (public article)](https://baymard.com/blog/inline-form-validation); [A Complete Guide To Live Validation UX](https://smashingmagazine.com/2022/09/inline-validation-web-forms-ux/); [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/); [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Forms pattern (Atlassian Design System)](https://atlassian.design/patterns/forms/); [Forms pattern and Form component usage/accessibility pages (Carbon)](https://carbondesignsystem.com/patterns/forms-pattern/); [Forms (React Aria)](https://react-aria.adobe.com/forms)

Link: https://uxreference.com/forms/validation-timing#rule-7

### When they submit

#### Rule 5. Moderate

Check every field when the person submits, whatever other checks ran earlier, and check again on the server.

- Applies when: Always.
- Based on: Convention
- Principle: Prevent errors

Why: Every source that covers timing validates on submit, and the browser's built-in check runs then. Convention only, so 3.

Sources: [Help users to recover from validation errors (Validation pattern)](https://design-system.service.gov.uk/patterns/validation/); [HTML Living Standard, constraint validation (form control infrastructure)](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constraint-validation); [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/); [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Forms (React Aria)](https://react-aria.adobe.com/forms); [Forms pattern and Form component usage/accessibility pages (Carbon)](https://carbondesignsystem.com/patterns/forms-pattern/)

Link: https://uxreference.com/forms/validation-timing#rule-5

#### Rule 8. Moderate

After a failed submit, move focus to where the errors are described (a summary of errors, or the first field in error) and keep everything the person typed.

- Applies when: A submit was rejected.
- Based on: Convention
- Principle: Help people recover from errors

Why: Convention across GOV.UK, Primer and Vercel, matching what browsers do natively. They differ on summary versus first field, which is left to [Error summaries](https://uxreference.com/forms/error-summary).

Sources: [Help users to recover from validation errors (Validation pattern)](https://design-system.service.gov.uk/patterns/validation/); [Error message component](https://design-system.service.gov.uk/components/error-message/); [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Web Interface Guidelines (Vercel), optimistic update and feedback items](https://vercel.com/design/guidelines); [Understanding SC 3.3.1 Error Identification (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html)

Link: https://uxreference.com/forms/validation-timing#rule-8

#### Rule 12. Weak

Keep the submit control usable before the form is valid, so that submitting shows what is missing. Make it unusable only while a submit is in progress.

- Applies when: Always.
- Based on: Convention
- Principle: Keep people informed

Why: Four design systems say keep it usable; Carbon allows a disabled control on short forms and Siemens offers it as an option. Convention with dissent, so 2 here. [Submit button state, rule 1](https://uxreference.com/forms/submit-state#rule-1), written after more systems were read, rates the same rule 3 and is the one to follow.

Sources: [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/); [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/); [Forms pattern (Atlassian Design System)](https://atlassian.design/patterns/forms/); [Web Interface Guidelines (Vercel), optimistic update and feedback items](https://vercel.com/design/guidelines); [Forms pattern and Form component usage/accessibility pages (Carbon)](https://carbondesignsystem.com/patterns/forms-pattern/); [Forms behavior (iX design system, alpha docs)](https://ix.siemens.io/version-alpha/docs/components/forms-behavior/)

Link: https://uxreference.com/forms/validation-timing#rule-12

#### Rule 14. Moderate

Do not list every error in one dialog.

- Applies when: Always.
- Based on: Research

Why: In a lab comparison, one dialog listing every error produced about three times the repeat errors of errors shown in the form after submit. The same evidence supports Error messages rule 4, rated 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)

Link: https://uxreference.com/forms/validation-timing#rule-14

#### Rule 15. Moderate

Do not rely only on the browser’s own validation messages.

- Applies when: Always.
- Based on: Practitioner research

Why: Browser messages can vanish, show one error at a time and are often generic. The WCAG Understanding document and GOV.UK guidance agree.

Sources: [Understanding SC 3.3.1 Error Identification (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html); [Help users to recover from validation errors (Validation pattern)](https://design-system.service.gov.uk/patterns/validation/)

Link: https://uxreference.com/forms/validation-timing#rule-15

## Accessibility requirements

- WCAG 2.2, 3.3.1 Error Identification (A): the field in error is identified and the error described in text. Silent on timing. (https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html)
- WCAG 2.2, 4.1.3 Status Messages (AA): an error that appears without taking focus must be exposed through a role or property so it is announced. (https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html)
- WCAG 2.2, 3.2.2 On Input (A): changing a value must not cause a change of context (focus move, submit, new window) without prior notice. (https://www.w3.org/WAI/WCAG22/Understanding/on-input.html)
- WCAG 2.2, 3.3.2 Labels or Instructions (A): instructions may state a required format. (https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html)
- Also likely to apply: 3.3.3 Error Suggestion (AA). It belongs to [Error message content](https://uxreference.com/forms/error-messages). (https://www.w3.org/WAI/WCAG22/Understanding/error-suggestion.html)

## Common mistakes

- Showing an error on the first keystroke or as the person enters a field. In the one test that included it, checking before and while typing gave the worst results ([Inline Validation in Web Forms](https://alistapart.com/article/inline-validation-in-web-forms/)). See [rule 6](https://uxreference.com/forms/validation-timing#rule-6).
- One dialog listing every error at once. It produced about three times the repeat errors of errors shown in the form after submit ([Usable error message presentation in the World Wide Web: Do…](https://edoc-vmtest.ub.unibas.ch/8009/1/iwc19-0330.pdf)).
- Relying only on the browser's own validation messages: they can vanish, show one error at a time, and are often generic ([Understanding SC 3.3.1 Error Identification (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/error-identification.html)). GOV.UK turns them off ([Help users to recover from validation errors (Validation…](https://design-system.service.gov.uk/patterns/validation/)).
- A submit control that cannot be used and does not say why. See [rule 12](https://uxreference.com/forms/validation-timing#rule-12).

## Still open

- First 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 ([Comparing the Effectiveness of Alternative Approaches for…](https://www.bls.gov/osmr/research-papers/2005/pdf/st050010.pdf)). No study tests "show errors late, clear them early", which is what most design systems now do.
- Phones: two abstracts report that feedback before submit worked best on Arabic smartphone forms ([Error Messages Timing and Graphical Presentation for…](https://www.paluniv.edu.ps/eng/?p=140533)). Full text not read.
- Screen 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.
- Does a disabled submit control hurt? Design systems disagree and no study was found. To be settled in [Submit button state](https://uxreference.com/forms/submit-state).

## Related problems

- [Error message content](https://uxreference.com/forms/error-messages): Say which field is wrong and how to fix it, right next to 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.
- [Submit button state](https://uxreference.com/forms/submit-state): Keep submit usable so it shows what is missing, and stop a second submission while the first is processing.

## 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 4.1.3 Status Messages (Level AA)](https://www.w3.org/WAI/WCAG22/Understanding/status-messages.html). W3C WAI (WCAG Working Group), n.d., normative standard (Understanding document is informative).
- [Understanding SC 3.2.2 On Input (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/on-input.html). W3C WAI, n.d., normative standard.
- [Enhancing online forms: use format specifications for fields with format restrictions to help respondents](https://doc.rero.ch/record/301906/files/iwc23-0033.pdf). Bargas-Avila, Orsini, Piosczyk, Urwyler, Opwis, 2011, between-subjects online experiment, four format-hint conditions, 15-field form.
- [Designing Usable Web Forms: Empirical Evaluation of Web Form Improvement Guidelines](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/42513.pdf). Seckler, Heinz, Bargas-Avila, Opwis, Tuch, 2014, between-subjects eye-tracking lab experiment, original vs redesigned newspaper registration forms.
- [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html). W3C WAI, n.d., normative standard (Understanding document).
- [Help users to recover from validation errors (Validation pattern)](https://design-system.service.gov.uk/patterns/validation/). GOV.UK Design System, n.d., pattern documentation.
- [HTML Living Standard, constraint validation (form control infrastructure)](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constraint-validation). WHATWG, n.d., normative standard.
- [Validation pattern (Cloudscape Design System)](https://cloudscape.design/patterns/general/errors/validation/). Amazon Web Services (Cloudscape), n.d., component documentation.
- [Forms pattern, Validation sections (Primer, GitHub)](https://primer.style/product/ui-patterns/forms/). GitHub (Primer design system), n.d., component documentation.
- [Forms (React Aria)](https://react-aria.adobe.com/forms). Adobe (React Spectrum / React Aria), n.d., component documentation.
- [Forms pattern and Form component usage/accessibility pages (Carbon)](https://carbondesignsystem.com/patterns/forms-pattern/). IBM (Carbon Design System), n.d., component documentation.
- [Inline Validation in Web Forms](https://alistapart.com/article/inline-validation-in-web-forms/). Luke Wroblewski (A List Apart), study run by Etre, n.d., within-subjects usability test with eye tracking; six registration form variants, random order.
- [Inline form validation (public article)](https://baymard.com/blog/inline-form-validation). Baymard Institute, n.d., practitioner research (large-scale e-commerce usability testing; details not stated).
- Error-message guidelines for forms. Nielsen Norman Group, n.d..
- [A Complete Guide To Live Validation UX](https://smashingmagazine.com/2022/09/inline-validation-web-forms-ux/). Vitaly Friedman (Smashing Magazine), 2022, expert opinion with usability-testing anecdotes.
- [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).
- [Forms pattern (Atlassian Design System)](https://atlassian.design/patterns/forms/). Atlassian, n.d., component documentation.
- [Error message component](https://design-system.service.gov.uk/components/error-message/). GOV.UK Design System, n.d., component documentation.
- [Web Interface Guidelines (Vercel), optimistic update and feedback items](https://vercel.com/design/guidelines). Vercel, n.d., company guidance.
- [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 Messages Timing and Graphical Presentation for Smartphones Arabic Forms](https://www.paluniv.edu.ps/eng/?p=140533). Alsalamen, Shahin, Al-Qawasmi, 2024, two experiments (details not available on the page).
- [Error message component](https://service-manual.nhs.uk/design-system/components/error-message). NHS digital service manual, n.d., component documentation.
- [The problem with live validation and what to do instead](https://adamsilver.io/blog/the-problem-with-live-validation-and-what-to-do-instead). Adam Silver, n.d., expert opinion.
- [Text fields (Human Interface Guidelines)](https://developer.apple.com/design/human-interface-guidelines/text-fields.md). Apple, 2023, expert opinion (platform guidance).
- [Validation component (requirement checklist)](https://designsystem.digital.gov/components/validation/). U.S. Web Design System (USWDS), n.d., component documentation.
- [Forms behavior (iX design system, alpha docs)](https://ix.siemens.io/version-alpha/docs/components/forms-behavior/). Siemens (iX), n.d., component documentation.
- [Why the GOV.UK Design System team changed the input type for numbers](https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/). GOV.UK Design System team (Technology in government blog), 2020, team write-up of browser and assistive technology testing.

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