Skip to content

Website tipsForms

Say how to fix it, not “Invalid input”.

By Denys Kharkovskyy ·

When a homeowner makes a mistake in your form, tell them which box and how to fix it: “Enter all 10 digits of your phone number.” “Invalid input” only says something is wrong, and leaves them to work out what.

The same estimate form twice, with a phone number that is too short. Don't: a message at the top says Invalid input. Do: a message under the Phone box says Enter all 10 digits, like 405 555 0147.

Why it matters

A homeowner types a phone number with one digit missing and taps the button. The form answers “Invalid input”. It doesn't say which box, or what to change. So they check their answers, see nothing wrong, and tap again. Same message.

The UK government's design system has a rule for this: an error message says what happened and how to fix it, in plain words. It tells its teams not to write “invalid”, because the word adds nothing, and not to wipe what a person has typed. Nielsen Norman Group's recommendations for forms end on the same point: make error messages visible and specific.

What to do

  1. Put the message at the box it's about, not just at the top.
  2. Say what to do: “Enter all 10 digits, like 405 555 0147.” Not “Invalid phone number.”
  3. Keep everything they typed. Never empty the form over one mistake.
  4. Don't rely on red alone. Add the words, and a thicker border or an icon.

Check yours in a minute

Open your estimate form on your phone. Leave one box empty, type 5 digits in the phone box and tap the button. Does the form name the box? Does it say what to do? Are your other answers still there?

How we do it

Our demo forms send nothing, so they don't check what you type. Our own form on the free preview page does. Press the button with the boxes empty, and under the email box you'll read: “Check your email address. It should look like name@example.com.”

Sources

Get a fixed price for your new site.

A free 30-minute call. We look at your current site together, and you get the price in writing after.

Not ready to talk? Send your website, and we'll put your company on our demo. Free. Get a free preview