Error prevention
Designing so that errors are less likely to happen in the first place, by removing situations where they're likely or by checking with people before they commit.
Also called preventing user errors
Example
A postcode box accepts 'sw1a 1aa' or 'SW1A1AA' and tidies it up, instead of rejecting the way people naturally type it.
When to use it
Use helpful limits, sensible defaults and forgiving formats. For payments, legal commitments or deleting data, let people review and correct before submitting, or undo afterwards.
Watch out
Use confirmation dialogs only for serious actions: used for everything, they teach people to click 'Yes' without reading.
Types and parts 2 parts
The evidence 6 sourced claims
Every sentence on this card traces back to one of these claims, each linked to its source. How we research
Nielsen's error-prevention heuristic says the best designs stop problems from happening at all, either by removing situations where errors are likely or by checking and asking people to confirm before they commit to an action.
WCAG 2.2 (level AA) says that where a page creates a legal commitment, makes a payment, changes or deletes the user's data, or submits test answers, at least one safety net must exist: the submission can be undone, the input is checked for errors with a chance to fix them, or people can review, confirm and correct everything before it is final.
A typical way to meet this is an order review step: before the order is placed, the shop shows the items, quantities, delivery address and payment method so the shopper can check and change them.
Slips can be prevented with helpful constraints (for example a flight date picker that won't let the return date come before departure), suggestions while typing, sensible defaults, and forgiving formats that accept input the way people naturally type it.
Confirmation dialogs should be kept for actions with serious results, such as destroying work or spending real money, especially when they can't be undone. Used for routine actions, they teach people to click 'Yes' without reading, so undo is the stronger safety net.
Mistakes happen when people's idea of how the system works doesn't match how it really works. They can be reduced by researching users early, following familiar conventions, making controls self-explanatory and offering previews of big actions; confirming destructive actions sparingly and supporting undo help with both slips and mistakes.