⚠️ UX & Accessibility · UX & Accessibility
Validation & Error Messages
Explain problems clearly and close to where they occur.
Tell users what happened and how to fix it.
Instead of 'Error 400', show 'Enter a postal code in A1A 1A1 format.'
💡 It is like a helpful shop assistant who says "that aisle, third shelf" instead of just "no".
💡 Why it matters
Errors are where users feel most stuck and most likely to quit. A good message meets them right at the field, says plainly what went wrong, and tells them exactly how to put it right. A cryptic code or a vague "something went wrong" leaves them guessing and often abandoning the task.
🛠️ How to achieve it
⚠️ Signs of trouble
- •Errors show raw codes like "Error 400" with no explanation.
- •A message says something failed but not which field or why.
- •All errors pile up at the top, far from the fields they describe.
- •The form wipes everything the user typed after a failed submit.
🎯 Quick check
Score: 0/3Three questions to test the idea.
1. What makes an error message good?
Answer: It says what happened and how to fix it
A helpful message names the specific problem and the exact step to resolve it.
2. Where should a field's error message appear?
Answer: Right next to the field it concerns
Showing the message close to where the problem occurred helps the user fix it quickly.
3. Which replaces "Error 400" best?
Answer: "Enter a postal code in A1A 1A1 format."
The specific, plain-language guidance tells the user exactly what to type to succeed.
