Skip to content

FBK-002 Show a failed action where it started and keep it there

Level
Rule
Verdict
Unanimous (3 of 3)
Status
decided, version 1.1.0

Rule

When an action fails for a reason not tied to one field or group of inputs, show the failure as text in the area where it started. Keep it there until the person closes it, a retry succeeds or they leave the view, and never let a self-closing message carry it alone.

Examples

Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.

Do: A notice in the panel that stays

Delivery address

The address could not be saved.

The server did not respond. Your changes are still here. Try again in a moment.

The save has just failed. The notice sits in the panel, above its buttons, and your typed address is still in the fields. Wait as long as you like: it stays. Press Try again or Save address and the save works: "Address saved." takes the notice's place. Reset example brings the failure back.

Don't: Only a toast that fades

Delivery address

The address could not be saved. The server did not respond. Your changes are still here. Try again in a moment.

The same failure shows only in a toast below the panel, and it goes after five seconds. Then the panel looks as if nothing went wrong. Press Save address again and watch the toast go.

Why

The person who pressed the button is looking at the button, the row or the panel they were working in. That is where they need to learn that it did not work. A message in a corner of the screen is easy to miss, and one that fades after a few seconds may be gone before a slow reader, a screen magnifier user or someone who looked away has seen it. Then they believe the work is saved, sent or deleted when it is not, and they find out later, when it costs more. A failure that stays in place also shows what it is about, so the person does not have to guess which of several actions went wrong. No WCAG criterion requires this placement or says how long a message stays. The rule rests on the judges. A notice added in place while focus stays where it is counts as a status message under WCAG 2.2, 4.1.3 Status Messages, so it needs a role that lets assistive technology present it; FBK-004 covers how. A failure that disappears on a timer works like a time limit on reading it, and keeping it in place stays clear of that, in the spirit of 2.2.1 Timing Adjustable. When the failure is an input error that is not tied to one field, 3.3.1 Error Identification asks that the item which is wrong is pointed out and that the fault is described in text, so the notice names that item as well as the fault. An error at one field or one group of inputs follows FRM-002a instead.

Do

  • A side panel Delivery address has Save. The server does not answer. Inside the panel, just above the buttons, a notice reads "The address could not be saved. The server did not respond. Try again in a moment." with a Try again button. Everything the person typed is still in the fields. The notice stays until a new attempt succeeds, the person closes it or they close the panel.
  • The person presses Delete on the row Contract – Hartley Ltd in a table. The removal is refused. The row stays where it was and says, in the row, "Could not be deleted: the contract belongs to an open invoice. Close the invoice and try again."
  • The person ticks the task Order toner, and the box shows ticked at once. The server then refuses the change. The box goes back to unticked, and the row says "Could not be marked as done." with Try again. The view never keeps showing a change that did not happen. Showing a change before the reply is STA-005a's exception for a change shown at once.
  • A card Recent orders on a start page cannot load its content. The card itself shows "Your orders could not be loaded." with Try again. The rest of the page works as usual.
  • A page form Request leave is sent, and the whole submission fails for a server reason. A notice near Send request reads "Your request could not be sent because the leave system is not responding. Everything you entered is still here. Try again in a moment." with a Try again button.
  • A toast "The address could not be saved" may appear as well, as long as the notice in the panel says the same thing and stays.
  • When the person must read or act on the failure before going on, the notice in place has no close button. It leaves when the problem is solved.
  • Our own choice: when the person has left the view before the refusal comes, put the earlier state back and tell them where they are now, in a message that stays until closed and names the item, such as "Order toner could not be marked as done." The area is gone, so that message carries the failure.
  • Save fails inside an ordinary dialog. The notice goes inside the dialog, as DLG-002 says.

Don't

  • Show only a toast "That didn't work" that fades by itself, while the panel looks as if the address was saved.
  • Show the failure only in a toast that stays until closed, even one with Try again. The notice in the area is still needed. FBK-003's exception for lasting toasts covers successes only.
  • Remove the row Contract – Hartley Ltd as soon as Delete is pressed and leave it gone after the server refused, with a toast as the only sign.
  • Report that one card failed to load in a banner at the top of the page, far from the card.
  • Clear the notice on a timer while the problem is still there.
  • Open an alert dialog with only OK for a failure the person can deal with in the area, such as a save they can simply try again. The notice belongs in the area. The short alert that DLG-002 allows over a full-screen dialog is a separate case.
  • Let a failure notice in a dialog cover or turn off Cancel. Cancel in a modal form keeps working, as FRM-003 says.
  • Put a server answer about one field or one group of inputs, such as "This company number is already registered", in the area's notice instead of at the field. It belongs at the field, as FRM-002a says.

Exceptions

  • When the person must choose how to go on. If the failure blocks the task and the person has to decide before doing anything else, a modal alert dialog about that action may carry it instead of a notice in the area. For example, on the page Price lists, Publish price list fails because Sarah Ellis published a newer version while the person was editing, and the person chooses between Keep Sarah's version and Replace with my version. The alert dialog stays until the person answers. Inside an ordinary dialog, DLG-002 applies: the failure becomes a notice inside the dialog, and only over a full-screen dialog may a short alert sit on top.
  • Problems that affect the whole product. When the person has been signed out, or the whole service stops answering, the problem is not about one action. It may be shown page-wide, or as a quiet sign in the part of the screen it affects. It still never appears only in a message that closes by itself.
  • Other rules. Errors about one field or one group of inputs follow FRM-002a. Where focus goes when a form is sent with problems at its fields follows the guideline FRM-011. The time between the press and the reply follows STA-005a, and so does a change shown before the reply. How messages in place are announced follows FBK-004. A successful result and the new state follow FBK-003.

Verdict

Unanimous (3 of 3). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work

Stances on FBK-002
SourceRoleStancePage
WCAG 2.2LawSupports4.1.3 Status Messages
WCAG 2.2LawSupports2.2.1 Timing Adjustable
WCAG 2.2LawSupports3.3.1 Error Identification
Material DesignJudge SupportsSnackbar: guidelines
Snackbar: accessibility
Dialogs: guidelines
Apple Human Interface GuidelinesJudge SupportsFeedback
Alerts
Carbon Design SystemJudge SupportsNotifications
Notification: usage
Notification: accessibility
Modal: usage
Dialogs
Status indicators
GOV.UK Design SystemExpert witness No position
Nielsen Norman GroupExpert witness SupportsIndicators, Validations, and Notifications: Pick the Correct Communication Option, by Kim Flaherty
Error-Message Guidelines, by Tim Neusesser and Evan Sunwall

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.1.0, : Adds, as our own choice, what happens when the person has left the view before a refusal comes. Also points to STA-005a for a change shown before the reply.
  • Version 1.0.2, : Focus on a failed send now refers to FRM-011, and the wait to STA-005a.
  • Version 1.0.1, : Examples in English.
  • Version 1.0.0, : First version.

Last checked against the other rules for conflicts on .

More in Feedback: 4 rules and 0 guidelines · All rules