TXT-001a Say what went wrong, what it concerns and what to do next
- Level
- Rule
- Verdict
- Unanimous (3 of 3)
- Area
- Text
- Status
- decided, version 1.0.2
Rule
Every message about a problem says in plain words what went wrong, names the thing it concerns by the name the person sees, and gives a next step: the fix when it is known, otherwise a retry, a wait or where to get help.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: The file, the fault and the fix
Add a receipt
Taxi, 12 March, $34. Receipt missing.
Error: The file receipt-march.pdf is 18 MB. Upload a file of 10 MB or less.
Don't: A bare verdict
Add a receipt
Taxi, 12 March, $34. Receipt missing.
Error: Upload failed
Why
A problem stops people in the middle of a task. If the message only says that something failed, they have to guess what broke, where, and whether their work is lost, and some give up. A message that names the thing and the way forward lets them carry on. When a value someone entered is caught automatically, much of this is what WCAG 2.2, 3.3.1 Error Identification and 3.3.3 Error Suggestion ask for. Those criteria do not reach a server that does not answer, a session that has expired or a missing permission. Asking the same of every problem message is our design choice.
Do
- A receipt is too large to upload. Write "The file receipt-march.pdf is 18 MB. Upload a file of 10 MB or less." It names the file, says what is wrong and what to do.
- A field Start date holds "3 June". The message "Write the date in numbers, for example 2027-06-03" is enough on its own: the instruction makes the fault plain.
- A message shown at the field, row or panel it concerns, and tied to it in code, names the thing by that place. The Start date message above need not repeat the field's name. Anywhere else, name the thing in words.
- A control placed with the message counts as the next step when its label says what it does, such as a button Try again or a link Sign in right after "This email address already has an account."
- The time slot a person picked was booked by someone else while they filled in the form. Write "The Friday 2:30 pm slot is no longer free. Choose another time below."
- A card payment is declined. Write "Your bank declined the card ending in 4821. You have not been charged. Try another card or contact your bank." Saying whether anything was charged or kept saves people from worry and from doing the work twice.
- Saving a report fails because the service does not answer. Write "The report Quarter 3 could not be saved. Your changes are still here. Try again in a moment." and add a button Try again.
- Give the time when you know it: "Exports are paused for maintenance until 10 pm. Try again after that."
- The person may not delete a project. Write "You cannot delete the project Spring campaign. Ask the project's owner for access."
- A code helps support staff, so add it after the plain words: "If this happens again, contact support and give the code B-4031."
- A heading or a count may sit above the specific messages, such as "2 things need fixing" with one line for each field right beneath it.
Don't
- Show only "Invalid value" at the field Start date. A bare verdict says neither what is wrong nor how to fix it.
- Show only a code, such as "B-4031", when a report cannot be saved.
- Use one catch-all line for every fault, such as "That didn't work", when the person needs to know what failed and what it concerns.
- Repeat the field's purpose instead of the fault. A field Membership number holds six digits instead of seven, and the message says "Type your membership number". The same words are right when the field is empty.
- Name the thing by an internal name the person never sees: "billing_zip is missing" instead of Postcode.
- Stop after the fault: "Payment declined." with no word on what to do next.
- Show the heading "This form has errors" on its own, with no specific lines beneath it.
Exceptions
- Sign-in and other security checks. When naming the exact field would reveal which accounts exist, name the pair and still give a next step: "That member number and PIN do not go together. Check both and try again." A password reset says what happens next without revealing whether the address has an account: "If that address is registered with us, an email will reach you within a few minutes." The same holds where a hint would give away the answer, as in a test.
- The note next to an unavailable button. Under ACT-005, that note may only point the person to a field, such as "Check the postcode to continue", as long as the message at that field follows this rule once it appears.
- Placement and timing. Where a field's message is shown is set by FRM-002a, when it appears and clears by FRM-002b, and where focus goes when a form is sent with problems by the guideline FRM-011. Problems inside a dialog follow DLG-002. Where a failed action is shown and how long it stays is set by FBK-002, and how a message is announced by FBK-004. This rule covers only the words.
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.1 Error Identification |
| WCAG 2.2 | Law | Supports | 3.3.3 Error Suggestion |
| Material Design | Judge | Supports | Dialogs: guidelines Text fields: guidelines |
| Apple Human Interface Guidelines | Judge | Supports | Writing Alerts Feedback |
| Carbon Design System | Judge | Supports | Notification: usage Notifications Forms Login Modal: usage |
| GOV.UK Design System | Expert witness | Supports | Error message Error summary Recover from validation errors |
| Nielsen Norman Group | Expert witness | Supports | Error-Message Guidelines, by Tim Neusesser and Evan Sunwall 10 Design Guidelines for Reporting Errors in Forms, by Rachel Krause |
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.2, : Focus on a failed send now refers to FRM-011.
- Version 1.0.1, : Examples in English.
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in Text: 4 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.