Product and briefs 4 min read Updated
Error messages that help people fix the problem
In short
Tell people what happened and how to fix it, in plain words that match the question they answered.
An error message is the moment a form either recovers the person or loses them. Say what went wrong, where, and how to fix it, in words the person already uses. The advice draws on the GOV.UK Design System error message component and on two Web Content Accessibility Guidelines (WCAG) criteria that set minimum requirements for error handling. Points without a source are marked as general practice.
The message says what happened and how to fix it
The GOV.UK guidance asks for two things in every message: describe what has happened, and tell people how to fix it. Use plain English, positive language, and get to the point. “Enter your first name” gives a clear instruction. “First name must have an entry” describes a rule without saying what to do.
For input that is too long, a description works better than a bare rejection. Say what the limit is, so the person knows how much to remove.
Generic messages help nobody
Avoid messages such as “Select an option” or “This field is required”. They tell the person that something is wrong without saying what. Reuse the wording of the question or the fieldset label, so the message refers to the field the person can see. Do not repeat an example that is already printed on the screen, because the message then competes with the hint.
The guidance also keeps some problems out of the error component entirely. Ineligibility and service problems belong on a separate page, not in a field message.
Say what to do next, not what went wrong
The guidance asks for clarity above all. Read each message aloud and check whether you would say it to a person across a counter. Avoid words that blame, such as “forbidden”, “illegal”, “you forgot” and “prohibited”. Avoid “please”, “sorry” and “oops”, and avoid “valid” and “invalid”. The message should tell the person what to do next, not what they did wrong.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Put the message by the field and in the summary
Put the message after the question text and any hint, and connect it to its question with a red border, as the component does. When the problem lies in one field inside a larger question, mark that field and name it in the message. Show the message next to the field and in an error summary at the top of the page, using the same words in both places. Do not clear any fields when the error appears.
What WCAG requires
Two WCAG 2.2 success criteria cover this ground. Success Criterion 3.3.1, Error Identification, is Level A: when an input error is detected automatically, the item in error must be identified, and the error must be described to the user in text. The description has to be text, so a red border on its own does not meet the requirement.
Success Criterion 3.3.3, Error Suggestion, is Level AA: where an error is detected and suggestions for correction are known, the suggestions must be provided. The exception is where giving them would jeopardise the security or purpose of the content.
A checklist before you ship a message
Check each message against this list:
- Check that the message says what happened and how to fix it.
- Make sure it reuses the words of the question or the label.
- Remove any blame, and avoid “please”, “sorry” and “oops”.
- Confirm it appears beside the field and in the error summary, with the same wording.
- Check that the values the person entered are still in the form.
- Check that a screen reader user can find the message and understand which field it concerns.
Messages are only part of the form. The structure of the questions is covered in forms people actually finish, and the way to test the wording with real people is in running a small usability test.
This article relies on the GOV.UK Design System and the W3C WCAG 2.2 understanding documents. Points described as general practice do not come from those sources.
Common questions
- What must a helpful message contain?
- The GOV.UK guidance asks a message to describe what has happened and tell people how to fix it. It also advises against generic messages such as Select an option or This field is required.
- Which words should a message avoid?
- GOV.UK lists blame-related words such as forbidden, illegal, you forgot and prohibited. It also advises against please, sorry, oops, valid and invalid. Read the message aloud to check whether it sounds like something you would say.
- Does WCAG set any rules for error messages?
- Yes. Success Criterion 3.3.1, at Level A, requires the item in error to be identified and the error to be described in text. Success Criterion 3.3.3, at Level AA, requires suggestions for correction to be provided when they are known, unless that would jeopardise security or the purpose of the content.
Sources
- Error message, GOV.UK Design System. Accessed 24 November 2026
- Understanding Success Criterion 3.3.1: Error Identification, W3C (WCAG 2.2). Accessed 14 November 2026
- Understanding Success Criterion 3.3.3: Error Suggestion, W3C (WCAG 2.2). Accessed 14 November 2026
Further reading
-
Forms people actually finish
People finish a form when each page asks one thing, every label stays visible and each error appears where they will look.
-
Client-side validation that never replaces the server
Use the constraints HTML already provides, add clear custom messages where they help, and check every value again on the server.
-
What changed in WCAG 2.2 and what to check
The new criteria that most affect shops and sign-in are focus not obscured, target size and accessible authentication, and one pass can check them.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea