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.

A form with one mistake is submitted. Clearing every field makes the person type it all again. Keeping what they typed leaves only the one error to fix.

The answer

Never make people type something twice. Keep what they entered through errors and back steps. As strong as the weakest rule behind it: weak.

The other rules

  • If a session times out, warn people first and let them extend it.
  • When a session ends, keep the answers so people can continue after signing in again.

Accessibility

Open questions

  • OpenNo controlled study or published online experiment on lost input was found.
  • OpenWhether to keep sensitive fields such as a card security code after an error: sources differ and cite security, not behavior.
Checked November 12, 2026

Sources