DST-001b Ask before an action only when it cannot be reversed or a mistake would cost a lot
- Level
- Rule
- Verdict
- Unanimous (3 of 3)
- Status
- decided, version 1.0.4
Rule
Ask the person to confirm a step only when it cannot be reversed and destroys, spends or commits something of value, or when a mistake would cost a lot and be hard to put right, such as a charge to a card; never ask before any other step.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: Ask before data that cannot come back
Meter readings for March
31 readings, stored only here.
Do: Reset at once, with Undo
Dashboard
- Sales
- Orders
- Visitors
Layout reset to the default
Don't: Ask before a step that one click reverses
Stock
| Item | Price | In stock |
|---|---|---|
| Desk lamp | $49 | 12 |
| Paper tray | $15 | 40 |
Why
A question before a step is a small wall. Put up rarely, it makes people stop and read. Put up for everything, it becomes a click people make without looking, and then it fails on the one day it matters. So the question is kept for the two cases in the rule, where there is no way back from a real loss, or where the way back is long, costly or uncertain. Inside those cases, choosing the step on purpose is no reason to skip the question. For every other step, the safeguard is to let it happen and make it easy to take back, as DST-001a describes. That includes routine steps, and it includes rare steps that cost little and can be fully reversed. A routine step is one people take often in their normal work, and that costs little if it goes wrong. "Fully reversed" means the whole previous state comes back, for the person who acted, right after they acted. "Never ask" is our firm reading: outside those two cases, a question costs more attention than it saves. For pages that make payments or legal commitments, or that change or delete data the person has stored in the product, WCAG 2.2, 3.3.4 Error Prevention (Legal, Financial, Data) accepts a chance to review and confirm as one safeguard and a way to reverse as another. It requires neither one in particular. Asking only rarely, and preferring Undo where it is possible, is our design choice on top of that.
The rule as a test, taken in order:
- Can the whole previous state be brought back, by the person who acted, right after they acted? Then never ask. Run the step and offer Undo.
- If not, does the step erase stored data, move money or commit the person to something, such as an invoice or a legal step? Then ask.
- Otherwise, do not ask.
A way back that is slow, costly or uncertain counts as no way back in the first step.
Do
- Ask before Delete March readings when the readings are stored nowhere else.
- Ask before Pay $4,800. Money that has left the account is slow and uncertain to get back.
- Ask before Cancel booking when the $500 fee is not refunded.
- Ask before Send invoice to customer. Once it is in someone else's inbox, the product cannot pull it back, and the customer now owes money.
- Ask before Delete 2024 receipts when it erases 340 receipts for good. DLG-003 covers how the question names what is lost.
- Archive a project at once when Archive brings it back with one click. Show a message with Undo instead of a question, as DST-001a says.
- Remove the tag Draft from twelve files at once when Undo puts it back on all twelve.
- Reset a dashboard to its default layout without a question, even though people seldom do it, when Undo brings back the old layout.
- When you do ask, word the question and the buttons as DLG-003 says, place focus as DLG-004 says, and style the action as DLG-005 says. If the step is started inside a dialog, the question follows DLG-002.
Don't
- Ask "Hide the Price column?" when the column can be shown again with one click.
- Ask before every change to a setting that can simply be switched back.
- Show the same warning style and the same question for archiving a project as for erasing a year of bookkeeping. When every step gets a question, people stop reading them.
- Skip the question before Delete March readings because the person picked it from a menu on purpose.
- Count a payment as reversible because an Undo link shows for five seconds. A short-lived Undo is not a full way back for money or a legal step.
Exceptions
- Routine sends. A chat message, a comment or a reaction cannot be called back once others have seen it, but it is a routine step that spends or commits nothing of value. Send it without a question.
- Undo that covers only part. When a step on many items has an Undo that brings back only some of what changed, and what is lost has value, treat the rest as something that cannot be reversed and ask. When Undo brings back everything, as with the tag on twelve files, do not ask.
- Unsaved input in a dialog, a sheet or on a page. Closing a view or leaving a page that would throw away unsaved input is not decided by this rule. FRM-004a covers full-screen dialogs, the guideline FRM-004b covers dialogs and sheets that do not fill the screen, and the guideline FRM-004c covers pages, with FRM-004d for keeping the work instead.
Verdict
Unanimous (3 of 3). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | Supports | 3.3.4 Error Prevention (Legal, Financial, Data) |
| Material Design | Judge | Supports | Dialogs: guidelines Snackbar: guidelines |
| Apple Human Interface Guidelines | Judge | Supports | Alerts Feedback Action sheets |
| Carbon Design System | Judge | Supports | Modal: usage Dialogs Notifications |
| GOV.UK Design System | Expert witness | Supports | Button |
| Nielsen Norman Group | Expert witness | Supports | Confirmation Dialogs Can Prevent User Errors, by Jakob Nielsen |
Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.
History
- Version 1.0.4, : The exception for unsaved input now also covers pages and names FRM-004c and FRM-004d.
- Version 1.0.3, : The exception for unsaved input now also names FRM-004b for dialogs and sheets that do not fill the screen.
- Version 1.0.2, : Adds a three-step test for when to ask.
- Version 1.0.1, : Examples in English.
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in Destructive actions: 2 rules and 0 guidelines · All rules
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.