Picture handing in a paper form at a desk, and the person behind it slides it back with a red cross and the word "invalid". No hint about which box, no idea what's wrong. Now picture them pointing at one line and saying "I think a number is missing from your postcode, could you check it?" Same mistake, a completely different feeling.
Error messages are that moment in your online form. Most people only see one when they're trying their best to finish, so a kind, clear message is one of the easiest ways to keep them going. And the good news: writing good ones is mostly about plain words and putting them in the right place.
What a helpful error message does
A good error message answers three questions straight away:
- Where? Which field needs attention, so nobody has to hunt for it.
- What? What isn't quite right, in everyday words.
- How to fix it? What to do now, ideally with a small example.
"That email looks incomplete. Could you check it?" does all three in one friendly sentence. "Invalid input" does none of them.
Prevent errors before they happen
The kindest error message is the one nobody needs to see. A few small things prevent most of them:
- Clear labels that stay visible. People should always see what a field is for, also while they type.
- A short hint where a format matters. "For example 06 12345678" under a phone field, or "As it's written on your booking confirmation" under a reference number.
- Accept answers in more than one format. Spaces in a phone number, a postcode in lower case or a date with dashes or slashes are all fine. Tidy them up on your side instead of asking people to retype.
- The right field types. An email field brings up the right keyboard on a phone, and a date picker helps where a date is needed.
- Only ask what you need. Every field you leave out is one less chance for an error. Our article on which form fields should be required helps you decide.
Put the message right next to the field
An error belongs where the problem is:
- Directly below or next to the field, close to its label, so it's obvious which question it's about.
- Connected to the field in the code, so screen readers read the message out when someone goes back to fix it.
- With an icon or a word as well as colour. A red border alone is easy to miss, especially for people who see colours differently. Our guide to making an accessible form has more on this.
On a longer form, add a short summary at the top when someone presses send: "Two answers need a quick look", with links that jump to each field. Then move the focus to that summary, so keyboard and screen reader users know what happened.
Choose the right moment
Timing makes a big difference to how an error feels:
- Not while people are still typing. Telling someone their email is wrong after the first letter feels like being interrupted mid-sentence.
- When they leave the field, or when they press send. That's when they're done and ready to hear it.
- Remove the message as soon as it's fixed. A message that lingers after the answer is right makes people doubt themselves.
Write it the way you'd say it
Use calm, plain language and talk about the answer, not about the person. Some examples you can borrow:
- Instead of "Invalid email": "That email looks incomplete. Could you check it?"
- Instead of "Field required": "We need an answer here before you go on."
- Instead of "Wrong format": "Could you write the date like this: 14-05-2026?"
- Instead of "Error 422": "Something went wrong on our side. Your answers are safe, so please try again in a moment."
- Instead of "Too long": "This answer is a little longer than this field allows. Could you shorten it a bit?" Even better, show the limit next to the field before people start typing.
A few small rules keep the tone right:
- No blame. Avoid words like "wrong", "failed" or "illegal". Say what to do instead.
- No jokes and no exclamation marks. Someone who's stuck isn't in the mood for a pun. Save the little party for the thank-you screen; our article on what to show after someone submits your form has ideas for that moment.
- Be specific. "Please use the member number on the back of your card" helps more than "Please enter a valid number".
- Use the same words as the label. If the field is called "Mobile number", the error shouldn't talk about "telephone".
Never lose what people typed
Nothing is more frustrating than fixing one small thing and finding the rest of the form empty again. So:
- Keep every answer after an error, including choices and longer texts.
- Only point to the field that needs a change, and leave the rest alone.
- If sending fails on your side, say so honestly, keep the answers and let people try again with one tap.
If your form uses conditional questions, make sure an error only ever points to a question the person can actually see.
Errors in other languages
If you share your form in more than one language, translate the error messages too. They're easy to forget because you rarely see them yourself. Our article on making a form in more than one language has a list of the small texts that often slip through.
Common mistakes
- One message at the top for everything. "There are errors in the form" without saying where sends people on a search.
- Clearing the form. Losing typed answers is the quickest way to make someone give up.
- Messages that sound like a system. Codes, field names from a database or "null" don't belong in front of people.
- Strict rules that don't matter. Rejecting a phone number because of a space or a plus sign creates errors that didn't need to exist.
- Shouting. Capitals, red everywhere and several exclamation marks make a small slip feel like a big problem.
A quick checklist
- Labels and short hints prevent the most common mistakes.
- Fields accept answers in more than one reasonable format.
- Each error appears next to its field and is connected to it for screen readers.
- Errors use an icon or text as well as colour.
- Messages say what to fix, in plain words, without blame.
- Errors appear when people leave a field or press send, and disappear once fixed.
- Everything people typed stays in place.
- A longer form shows a summary with links to each field.
- System errors are honest and keep the answers safe.
- Error messages are translated along with the rest of the form.
Then try it yourself: make a few mistakes on purpose, on a phone and with only a keyboard. Our routine for testing your form before you share it walks you through it.
How we're thinking about this at Cuppaform
Cuppaform is still being built, and we'd like error messages to feel like a friend pointing at the right line, not a red stamp. Friendly default messages, hints next to fields, errors that are connected to their field for screen readers and answers that are never lost are part of what we're designing and testing. Responses are stored in the EU. We're not there yet, so we won't promise exactly how error messages will look or which ones you'll be able to change.
What you can try today is our demo. Describe the form you have in mind in a sentence and watch a short draft of questions appear. Then pick one question and write the error message you'd want to see if you got it slightly wrong. The demo runs in your browser; nothing you type is sent or stored.
You can try the demo and write your first kind error message.