# Preserving input after an error

> An error, a back step or a timeout that wipes what people typed makes them do the work twice, or give up.

Area: Forms. Evidence behind the answer: Weak. Last checked November 12, 2026.
Page: https://uxreference.com/forms/preserve-input

## The answer

Never make people type something twice. Keep what they entered through errors and back steps.

- **Settled, WCAG AA.** Don’t ask for something twice in the same process. Fill it in, or let people pick it. (https://uxreference.com/forms/preserve-input#rule-1)
- **Moderate.** When you show an error, keep everything people entered, in every field. (https://uxreference.com/forms/preserve-input#rule-3)
- **Weak.** When people go back a step, show what they entered there. (https://uxreference.com/forms/preserve-input#rule-4)

## The problem

Losing what was typed, to an error, a back step or a timeout, makes people do the work twice or give up.

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

Do not ask again for information the person already entered in the same process. Fill it in or let them select it.

- Applies when: Information was entered earlier in the same process.
- Based on: Standard or law
- Principle: Recognition over recall

Why: WCAG 2.2 level A (3.3.7). Reopened and checked.

Sources: [Understanding SC 3.3.7 Redundant Entry](https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html)

Link: https://uxreference.com/forms/preserve-input#rule-1

#### Rule 2. Settled, WCAG AA

Where a session has a time limit, warn before it ends and let the person extend it.

- Applies when: The session has a time limit.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 level A (2.2.1), with exceptions for limits that are essential. Reopened and checked in the pilot.

Sources: [Understanding SC 2.2.1 Timing Adjustable (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/timing-adjustable.html)

Link: https://uxreference.com/forms/preserve-input#rule-2

#### Rule 3. Moderate

When showing a validation error, keep everything the person entered, in every field.

- Applies when: A submit was rejected.
- Based on: Convention
- Principle: Keep people in control

Why: GOV.UK, Primer and Baymard agree, and Baymard reports abandonment after card fields were cleared, without numbers. A guideline study lists it but never tested it. Rated 3.

Sources: [Help users to recover from validation errors (Validation pattern)](https://design-system.service.gov.uk/patterns/validation/); [Saving (UI pattern)](https://primer.style/ui-patterns/saving); [Preserve credit card details when a validation error occurs](https://baymard.com/blog/preserve-card-details-on-error); [Designing Usable Web Forms: Empirical Evaluation of Web Form Improvement Guidelines](https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/42513.pdf)

Link: https://uxreference.com/forms/preserve-input#rule-3

#### Rule 4. Weak

When someone goes back to an earlier step, show what they entered there.

- Applies when: The form has steps.
- Based on: Convention
- Depends on: Length of the form
- Principle: Keep people in control

Why: USWDS guidance; Baymard's detail on back steps is in paid research. Rated 2.

Sources: [Patterns: Complete a complex form, Progress easily](https://designsystem.digital.gov/patterns/complete-a-complex-form/progress-easily/); [Preserve credit card details when a validation error occurs](https://baymard.com/blog/preserve-card-details-on-error)

Link: https://uxreference.com/forms/preserve-input#rule-4

#### Rule 5. Weak

After a session ends, keep the data so the person can continue once they sign in again.

- Applies when: The session has a time limit.
- Based on: Convention
- Principle: Keep people in control

Why: A WCAG level AAA criterion and W3C cognitive accessibility guidance; AAA sets no floor here. Rated 2.

Sources: [Understanding SC 2.2.5 Re-authenticating (Level AAA)](https://www.w3.org/WAI/WCAG22/Understanding/re-authenticating.html); [Cognitive Accessibility Design Pattern: Avoid Data Loss and "Timeouts"](https://www.w3.org/WAI/WCAG2/supplemental/patterns/o4p09-data-loss/)

Link: https://uxreference.com/forms/preserve-input#rule-5

## Accessibility requirements

- WCAG 2.2, 3.3.7 Redundant Entry (A) and 2.2.1 Timing Adjustable (A). (https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html)
- WCAG 2.2, 2.2.5 Re-authenticating and 2.2.6 Timeouts (both AAA): no data loss on re-authentication; warn about inactivity that loses data unless data is kept 20 hours or more. (https://www.w3.org/WAI/WCAG22/Understanding/re-authenticating.html)
- WCAG 2.2, 3.3.4 (AA) for legal and financial submissions. (https://www.w3.org/WAI/WCAG22/Understanding/error-prevention-legal-financial-data.html)

## Common mistakes

- Clearing a whole form, or its password or card fields, after one field fails.
- A timeout that discards everything with no warning.

## Still open

- No controlled study or published online experiment on lost input was found.
- Whether to keep sensitive fields such as a card security code after an error: sources differ and cite security, not behavior.

## 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 message content](https://uxreference.com/forms/error-messages): Say which field is wrong and how to fix it, right next to the field.
- [Saving and resuming](https://uxreference.com/forms/save-resume): When a form needs things people may have to go and find, let them save and come back.
- [Time limits](https://uxreference.com/accessibility/time-limits): Avoid time limits. Where one is needed, warn before it ends and let people extend it.

## Sources

- [Understanding SC 3.3.7 Redundant Entry](https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html). W3C WAI, n.d., normative standard (Understanding document).
- [Understanding SC 2.2.1 Timing Adjustable (Level A)](https://www.w3.org/WAI/WCAG22/Understanding/timing-adjustable.html). W3C WAI (WCAG Working Group), n.d., normative standard (Understanding document is informative).
- [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.
- [Saving (UI pattern)](https://primer.style/ui-patterns/saving). GitHub Primer, n.d., design system pattern documentation.
- [Preserve credit card details when a validation error occurs](https://baymard.com/blog/preserve-card-details-on-error). Sonia Sousa, Baymard Institute, 2024, large-scale qualitative checkout usability testing plus site benchmark.
- [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.
- [Patterns: Complete a complex form, Progress easily](https://designsystem.digital.gov/patterns/complete-a-complex-form/progress-easily/). U.S. Web Design System (GSA), n.d., pattern documentation.
- [Understanding SC 2.2.5 Re-authenticating (Level AAA)](https://www.w3.org/WAI/WCAG22/Understanding/re-authenticating.html). W3C WAI (WCAG Working Group), n.d., normative standard (Understanding document is informative).
- [Cognitive Accessibility Design Pattern: Avoid Data Loss and "Timeouts"](https://www.w3.org/WAI/WCAG2/supplemental/patterns/o4p09-data-loss/). W3C WAI Cognitive and Learning Disabilities Task Force, n.d., expert-group supplemental guidance (non-normative).

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