Confirmation
An interruption that should be reserved for genuinely irreversible actions, because it stops being read when it is routine.
Definition
A confirmation asks the user to approve an action before it proceeds. Its usefulness decays with frequency: a confirmation the user sees daily is dismissed reflexively and provides no protection.
Expert heuristic. A review criterion developed by practitioners. Useful and widely taught, but evaluated by judgement rather than measurement.
On this plate
Reach for this when
- An action cannot be undone.
- The consequence is significant and wide-reaching.
Common mistakes
- Confirmation fatigue from routine dialogs.
- Generic wording.
- Destructive action styled as primary.
- Adding a confirmation to a frequent action, which is dismissed reflexively within a week and protects nobody.
Decide whether you need one
- 1
Is it reversible?
If yes, do not confirm. Provide undo instead.
- 2
Is it recoverable within a window?
If yes, use a soft delete with a visible restore path.
- 3
Is it irreversible and significant?
Confirm, naming the specific object and consequence.
- 4
Is it irreversible and catastrophic?
Require the user to type the object name, which forces deliberate attention.
Writing the dialog
Do
- Put the consequence in the heading: 'Delete 14 files permanently?'
- Label the action button with the verb, not 'OK'.
- Say what cannot be undone, and what can.
- Make cancel visually secondary but easy to hit.
Do not
- Ask 'Are you sure?' with no information.
- Style the destructive action as the primary button by default.
- Confirm reversible actions.
- Use a confirmation to compensate for a mis-tap-prone layout. Fix the layout.
Matching protection to consequence
| Action | Protection | Why not more |
|---|---|---|
| Reversible, frequent | Nothing, plus undo | A prompt here trains people to dismiss prompts |
| Reversible, rare | Undo, and a clear confirmation message | The message is the record of what happened |
| Irreversible, low value | One dialogue naming the object | Naming is what prevents the wrong-item error |
| Irreversible, high value | Type the name to confirm | Deliberate friction, proportional to the loss |
| Irreversible, affects others | Dialogue plus a stated scope | The reader needs to know who else is affected |
Protection proportional to the loss
In practice
- i.
Type-to-confirm
Developer toolsRequiring the exact name of the resource before deletion is friction proportional to consequence. Applying it to routine actions would be absurd, which is the point.
- ii.
Are you sure, about what
Naming the objectA confirmation that does not name what is being deleted asks the reader to remember which row they clicked. The name is the entire protective value of the dialogue.
Commonly confused with
Close neighbours that get substituted for each other. The difference is stated first, then the condition that picks one over the other.
Undo
PatternA way back after the action has already happened.
Key difference
Confirmation asks before, and taxes every action to catch the rare mistake. Undo forgives after, and costs nothing when the reader was right. Reach for confirmation only where undo is genuinely impossible.
Use Confirmation when
- The action truly cannot be reversed, such as a permanent deletion.
- It is rare enough that the prompt will still be read.
- The consequence reaches beyond the reader, as with sending or publishing.
Use Undo when
- The previous state can be restored.
- The action is frequent, and a prompt would be dismissed by reflex.
- You want people to explore without fear of breaking something.
Local chart
PAT·008 · Region III · Grid E1
This entry and the entries it is stated to connect with. Each line is labelled with what the connection means.
Continue from here
Each link says what the connection is, so you can tell a principle from an alternative from a thing people mix this up with.
Applies when you are designing
Principles behind this
The reasoning this solution is an application of.
- Framing EffectBIAS·003 · Cognitive bias
- Error PreventionHEUR·005 · Heuristic
- User Control and FreedomHEUR·003 · Heuristic
- Peak-End RuleLAW·007 · Law
The last screen of a flow is weighted out of proportion in what people remember.
- ForgivenessPRIN·006 · Principle
Often used with
These usually appear in the same screen or the same decision.
- Modal DialogCMP·010 · Component
- Destructive ActionsPAT·009 · Pattern
Related concept
Connected closely enough to change how you apply this.
- Button and Action LabelsWRT·008 · UX writing
- Confirmation and Destructive CopyWRT·012 · UX writing
- MicrocopyWRT·001 · UX writing