Sub topic 3
9. Help Users Recognize, Diagnose, and Recover from Errors
This chapter assumes you know the first eight of Nielsen's heuristics and can read basic HTML.
Error recovery (heuristic 9)
An error message should say what went wrong, why, and how to fix it, in plain language. A code alone, such as "Error 4012," does not help the user.
<label for="email">Email address</label>
<input id="email" type="email" value="ana.example.com" aria-invalid="true" aria-describedby="email-error">
<p id="email-error">Enter an email address that includes an @ sign, such as [email protected].</p>The aria-describedby attribute links the message to the field, so screen readers announce it with the input.
Help and documentation (heuristic 10)
Help should be easy to search, focused on the task the user is trying to finish, and short. Put it where users get stuck, such as beside a form field. Inline hints, tooltips, and a searchable help page all count.
Running a heuristic evaluation
- Choose the screens and tasks to inspect.
- Have two or three evaluators walk through each task alone, checking every screen against the ten heuristics.
- Record each problem with its screen, the heuristic it breaks, and a short description.
- Merge the lists and remove duplicates.
Rating the severity of problems
Rate each problem on a scale from 0 to 4:
| Rating | Meaning |
|---|---|
| 0 | Not a usability problem |
| 1 | Cosmetic: fix if time allows |
| 2 | Minor: low priority |
| 3 | Major: fix before release |
| 4 | Catastrophic: must fix |
Severity depends on three factors: how often users meet the problem, how hard it is to get past, and how many users it affects. Fix the highest-rated problems first.
Limits of heuristics and what to combine them with
Heuristic evaluation finds many problems quickly. It misses problems that appear only when real people work through tasks, and evaluators bring their own assumptions. Pair it with user testing, in which people from your audience attempt real tasks while you observe. Use user testing when the question is whether people can complete a task. Use heuristics when the question is whether a screen breaks a known principle.
Exercise
A checkout form shows "Error 4012" when a card number is wrong. Which heuristic does this violate, and what change fixes it?
Show answer
It violates heuristic 9, help users recognize, diagnose, and recover from errors. Replace the code with plain language, such as "The card number needs 16 digits. Check it and try again," and highlight the card number field.