Rise Layouts logo Rise LayoutsDesign and layout, explained clearly
Web Design

Form Error Message Design That Helps People Fix It

I watched a friend try to book a vaccination appointment on a council website last winter. She filled in nine fields, pressed submit, and the page reloaded with a thin red line of text at the very top that said one or more fields contain...

A web form on a phone screen showing a highlighted field with a short error message underneath it

I watched a friend try to book a vaccination appointment on a council website last winter. She filled in nine fields, pressed submit, and the page reloaded with a thin red line of text at the very top that said one or more fields contain errors. Nothing was highlighted. Her phone number had been wiped. She tried twice more, guessing at which field was wrong, and then phoned the surgery instead.

The form worked. The validation worked. The error message was the only broken part, and it cost that service a booking and about fifteen minutes of someone's evening. Error text is the part of a form people read most carefully and the part designers spend the least time on, usually because it only appears when something has gone wrong and nobody checks that state in the mockup.

An error has to answer three questions at once

Where is the problem, what is wrong, and what do I type instead. If your message answers fewer than three, the person has to work out the rest by trial and error, which is where forms get abandoned.

Position handles the first question. The message belongs next to the field it describes, and the field itself needs a visible change so you can find it by scanning. Putting all the detail in a block at the top and nothing at the fields means scrolling back and forth on a phone, matching field names to error lines, which is genuinely hard on a long form.

The wording handles the other two, and this is where most messages stop halfway. Invalid date tells me which field and nothing else. Use the format 24/07/2026 tells me what to type. The second version is three words longer and removes the entire guessing step.

Rewriting the usual suspects

These are the messages I see most often in audits, with what I would put instead.

Typical messageBetter versionWhat changed
Invalid inputPostcodes are four digits, like 3053States the rule and shows an example
This field is requiredAdd a phone number so the driver can reach youExplains why it is being asked for
Password does not meet requirementsAdd one more character to reach 10Names the one thing still missing
Email address is invalidCheck the part after the at sign, it reads gmialPoints at the actual typo
Card declinedYour bank declined this card. Try another or call themSays who refused and what to do next
Error code 422We could not save that. Nothing has been chargedRemoves jargon and reassures about money

The pattern across all six is that the better version is longer. Short error text reads as tidy in a design file and performs worse, because brevity is being bought with the user's time. Two lines of helpful text under a field is fine. I would rather have a slightly uneven column than a form people cannot finish.

Timing matters more than wording

Validating on every keystroke is the single most common mistake I see in new form work, and it comes from a good instinct. Instant feedback sounds helpful. In practice it means the person typing an email address gets told their input is invalid four characters in, while they are still typing it, and the message flickers red under their fingers for several seconds.

Validate when the person leaves the field. That is the moment they have declared themselves finished with it, and a message then is information rather than interruption. The one sensible exception is a live counter that counts up toward a requirement, such as password length, where the feedback is progress rather than failure.

Clearing the field on error deserves its own mention because it still happens on government and banking forms. If someone mistyped one digit of a sixteen digit card number, deleting all sixteen is a punishment. Keep what they typed, mark it, and let them fix the character.

Red is not an error state

Here is the part I argue about most. Red is a signal, not a message, and a form that carries its entire error state in red text fails three separate groups of people.

Start with contrast. Pure red on white measures just under 4:1, which sits below the 4.5:1 that small text needs. Designers reach for bright red precisely because it looks alarming, and the brighter it gets the less readable it becomes. A darker red in the region of a 5:1 or 6:1 ratio against white still reads as a warning and is legible at 14 pixels.

Then the obvious one: roughly one man in twelve has some form of red green color deficiency, and for a good share of them a red message beside a gray one differs mainly in lightness. The fix is cheap. Add an icon, add a weight change, add a short word like Error at the start, and change the field border rather than only the text. Any two of those together survive a grayscale screenshot, which is the quickest test available and the one I run on everything, as the piece on color blind friendly design sets out.

The third group is people in bright sunlight on a phone, which on some sites is most of your traffic. Thin red type at low contrast on a glossy screen outdoors is close to invisible. Weight and size carry further than hue does.

What a long form needs on top

Below about six fields, inline messages are enough on their own. Above that, add a summary block at the top of the form after a failed submit, listing each problem as a link that jumps to its field. Keep the inline messages too. The summary is for orientation, the inline text is for the fix.

Give the summary a heading that counts, something like three fields need attention, and move focus to it when it appears so screen reader users hear it rather than wondering why nothing happened. Keep the order matching the visual order of the form, because a summary that lists errors in the order your validation code happened to run is confusing in a way nobody can diagnose.

One more detail that gets skipped: say which fields are optional rather than marking everything else required. On a form where eleven of twelve fields are mandatory, twelve asterisks communicate nothing. This is the same argument as leaving labels permanently visible rather than hiding them in the field, which the notes on placeholder text in web forms go through in more detail.

If you want to find the problems in your own work, submit your form empty, then submit it with one deliberate typo in each field in turn, and screenshot every state. It takes about ten minutes on a short form, and I have never done it without finding at least one message that only makes sense to the person who wrote the validation. More page level fixes of this kind sit in the web design section.

FAQ

Should the error message go above or below the field?

Below the input works for most layouts and keeps the label, field and message in reading order. Above the input is defensible when a mobile keyboard would cover the space underneath, which is worth testing on a real phone.

How long should an error message be?

Long enough to name the rule and give an example, which is usually one sentence of eight to fifteen words. Two short lines is acceptable. A paragraph means the field itself needs rethinking.

Do I need to use the word error?

Not in every case, though a short text cue helps anyone who cannot rely on the color. Words like Check or Missing often read better than Error and do the same job.

Can I show a success state as well?

For fields with real rules, such as a username that must be unique, a green check after validation is reassuring. For ordinary text fields it adds clutter, and a form covered in ticks is harder to scan than a quiet one.

ST
Suki Tanaka

Suki covers type and color, translating design theory into practical choices anyone can apply.

More posts by Suki

More in Web Design

01doorganico 084goad 3hot8 4465456 after5internprogram ahandfulofblessings ahmadpc ahomcybersecurity allodialresources annodex antiquesandperiodcollectibles aotc asianworldkashmir beedlectrics bloggertemplatefree bluefeatheragency bodyweightsolution campaign08blog carfixadvisor catstreetcollective cbstvsports cnfanspurchasing committeeof500yearsofdignityandresistance covertopsdjs cs-kaiyuangame cuestacomunicaciontotal cxoutlet dancebetgame deskgearhub destinyvillastay detectmagazine di33 diamondsteelbuildings donmo dyanadropship emarsysfinance emimattl escapechan eskitarih evautoplay everythingweddings-orlando farmzone feedviewerapp foxstudiosscratch gamevui123 gleasongrade greetingsday hacklabasu haskell iw-kaiyun jagoanproperti jilidskripsi joltbusinessfinance juegodepokergratis juegospucca kaeru-festival latestmehndidesigns lestanzediottaviano litemagazines localcommunityhero lustrsazan mariashebets menswheels newwebstechs1 nikkit ootheday oxigenvpn plurfitness prefetial probudgetcarpetcleaning psychicmrsmartin pyaten qvantor rejoignezlogis rexzbot ruchin rwxqsgd5 sakaltime shibiaowang shop-bot skrtips spotlesshaven strcoding tetapatrium topselller uneplanteartificielle vipertechcr webtech1223411 wo-kygaming yamaha-mekar yeknava yoybuysheets zenunwa yamaha-mekar jilidskripsi ankertoto ankertoto ankertoto