Pass the menu and read the page

SignupFolio

Signup field error messages: 3 rules for limits

Signup field error messages should name the field, state its length or range limit, and preserve what the person typed.

Key takeaways

  • Ask your engineer for the exact text of every length and range error on the signup form.
  • Confirm each message names its field, uses the label's words, and states the limit.
  • Confirm each hint is tied to its input in the built page, and that the reading order is right.
  • Confirm that a failed submission keeps every field the person filled in.
  • Keep a dated copy of the approved error text with the release notes.

A signup form has a handful of fields with a hard limit. A company name has to fit a database column. An address line has a maximum length. A number field has a lowest and highest value the business will accept. When someone goes past one of those limits, the form has to tell them, and the words it uses are easy to skip in a review. The engineer checks the logic, the marketer checks the sign-up flow, and the error text falls between the two.

Nobody owns that text by default. Engineers usually write the first version while they build the validation, and it often ends up as a generic phrase such as "Invalid entry." Marketers and growth leads care about the sign-up because it is the top of the funnel, and they tend to read the screen as a whole rather than field by field. Neither group is wrong. The problem is that a message nobody reads closely becomes the message a real person sees.

Think of the error text as part of the signup itself. A form that tells people clearly what to fix keeps them moving toward the button. A form that leaves them guessing sends them to support or away from the page.

The three rules below are for the review meeting where you and your engineer read those messages before release. Each rule is a question you can ask about every message on the form. None of them requires a design system or new tooling. They do require someone to read the words out loud and decide whether a stranger could fix the problem from them.

Bring the list of fields with limits, the message for each error, and the setting the engineer uses to decide when the check runs. Read the messages in order, as a person would meet them. Keep the meeting short by reading each message once, out loud, and asking the three questions in the first rule before moving on.

This post does not cover password rules or the wording for email addresses. Those need their own reviews.

Rule 1: say the limit in the error message itself

The most common failure is a message that says something is wrong without saying what is allowed. Someone types a long company name, the form shows "Invalid entry" in red, and they start guessing. They delete characters at random, or they give up.

GOV.UK, the UK government's design system for online services, handles this with two kinds of message. For an empty field, the message tells the person what to do. For an entry that is too long, the message states the rule. The error message guidance puts it this way: "For example, use an instruction for empty fields like ‘Enter your name’, but a description like ‘Name must be 35 characters or less’ for entries that are too long."

That sentence has a pattern worth copying. The empty-field message is an instruction, so it says what to do next. The too-long message is a description, so it names the rule and the number. Asking someone to enter a name after they have typed too much identifies the wrong problem.

One caution about where this comes from. The guidance is written for government teams that build online services, so treat its wording as a pattern for your form, not as text you must copy. If a field holds data with legal requirements attached, check the exact wording with a legal adviser before release.

Ask your engineer to show every length error on the signup form, one at a time. For each one, check three things. Does the message name the field, using the same words as the label? Does it state the limit in the same unit the field uses? Does it say what is allowed rather than only that something went wrong? A message that passes all three can stay. A message that fails any one goes back for rewriting before anyone signs it off.

The message also needs to appear at the right moment. Some checks run as the person types, and others run only when they press the button. A length error that appears on every keystroke can feel like nagging, while one that waits until submission can feel like a surprise. Ask the engineer which moment the form uses for each length check, and make sure the message is written for that moment. A message that names the limit works at either time, and a message that says only "Too long" does not tell the person how far to go.

Ask how the limit is counted, too. If the field trims spaces or counts some characters differently, the person may be surprised by the count. Whatever the engineer confirms, the words should match the way the field counts, so the person is never told a rule the field does not apply.

Avoid words that sound like a judgment on the person, such as "Invalid" or "Wrong". The field is the thing with the limit, so the message should be about the field and the rule, not about the person who typed the entry.

Keep the number as a digit. The reader scans for the number, and the engineer can compare the digit against the field's maximum in the code without translating it. This is a house style choice, so agree it with your engineer. For the label review, use the guide to visible labels and accessible names.

Read each message in place, on the form, not in a spreadsheet. A message that reads well in a document can look cramped beside a field, and it can be cut off on a phone.

This is where your role matters. You know the tone your brand uses, and you can push for plain words. The engineer knows the limit and the rule behind it. Agree on a single version of each message before the meeting ends, so the copy in the design file and the copy in the build match.

Rule 2: show the limit before the person types

The first rule fixes the message after a failed attempt. The second rule tries to make the failed attempt less likely. A limit shown beside the field, before any typing, gives the person a chance to get it right first time.

The W3C's guidance on forms states the general principle: "Form Instructions: Provide instructions to help users understand how to complete the form and individual form controls." For a signup form, an instruction is usually a short line of text under the label, such as a line that says how many characters are allowed. The instruction should sit where the person's eye already is, next to the box they are filling in, not in a help page they have to find.

Be careful with example text inside an empty box. It disappears as soon as the person types, so it is a poor place for a limit. A person who has already started typing still needs to see the limit, and that example gives them nothing to look at once their own words appear.

The U.S. Web Design System adds an accessibility point in its character count component: "Use aria-describedby on the input to allow the message to be announced to those using screen readers." In plain terms, the limit text and any error text should be tied to the input in the code, so a screen reader reads them when the person reaches the field. Ask your engineer to show you this in the built page, not only in the design file, because a design file cannot show whether that link exists. Include this in your signup accessibility review.

Test the reading order as well. A screen reader moves through the page in the order the code sets, so the label, the hint, and the input should follow that order in the built page, and the error should follow the field it describes.

Growth teams often want the hint removed to keep the form short. A shorter form is a fair goal, and you can reach it by cutting words rather than cutting the limit. A hint of a few words that states the limit is enough. Removing the limit to save space trades a short form for a longer detour through the error messages, and the person pays for that trade.

Write the hint the way you would say it to a friend. A phrase such as "up to a set number of characters" is vague, while a line that names the limit is clear. Keep the sentence short, and do not add a second instruction in the same line, since a second instruction gives the eye another thing to read.

Then compare the two texts. The hint and the error should describe the same limit in the same words. If the hint and the error describe the limit differently, the person has to work out which one is correct, and that is the kind of friction a signup form cannot afford.

Also decide where the hint goes when a field has an error. Some teams keep the hint in place and add the error below it. Others replace the hint with the error. The first keeps the rule on screen while the person fixes the entry, and the second makes them remember it.

A useful exercise is to show the hint to someone who has not seen the form and ask what the limit is in their own words. If their answer is wrong, the wording needs work, and the engineer can then confirm the rule behind the right answer.

Rule 3: name the exact range and keep what the person typed

Number fields need more than a limit. A person has to know the lowest value, the highest value, or both. The GOV.UK text input guidance gives example messages for a length limit and for one number field, "Hours worked a week". Its examples cover a length limit, a number format, a minimum, a maximum, and a range. Each message names the field, the check, and the figure, so the person can see the rule in one line.

The table sets the examples side by side, so you can compare the figures:

Example fieldMessage as writtenFigures used
Address line 1must be 35 characters or less35
Hours worked a weekmust be a number, like 3030 (example value)
Hours worked a weekmust be 16 or more16
Hours worked a weekmust be 99 or fewer99
Hours worked a weekmust be between 16 and 9916 and 99

Pick the message that matches the check your engineer actually runs. A field with only a minimum should say "or more", not give a range. A field with an upper and a lower limit should name both ends in one sentence, so the person does not have to guess which end they missed.

The format message uses an example number to show the shape of a good answer.

Messages drift away from rules when someone changes the limit in the code and forgets the words. Ask the engineer to store each limit in one place and to build every message from that value. If the limit changes later, every message that mentions it changes with it, and nobody has to find the copies by hand.

Marketers often want to soften the tone of an error, and that is reasonable. Softer wording is safe as long as the rule stays visible. Your job in the meeting is to keep the tone friendly without hiding the figure.

The second half of this rule is about what happens to the entry. GOV.UK says: "Do not clear any form fields when showing the Error message component." GOV.UK also tells teams to follow its Validation pattern and show an error message when there is a validation error.

Illustrative example: check a number range

Suppose a field labelled "Hours" accepts numbers between 10 and 30. These are illustrative settings.

  1. The person types "thirty" and submits. The form shows "Hours must be a number, like 30." Their entry stays in the box.
  2. They change it to 5 and submit. The form shows "Hours must be between 10 and 30." The number stays in the box, so they change only that one thing.
  3. They change it to 30 and submit. The check passes, and the form moves on to the next step.

The example assumes the form checks the number format first and the range second. Your engineer should confirm that order, because it decides which message a person sees first.

The same goes for a signup form where two fields fail at once. Ask the engineer to show both messages in the same pass, so the person does not fix one field only to meet a second error on the next submit.

When you go through the engineer's list of checks, look for a message shaped like one of the examples above for each check. If a check has no message of its own, the person will see a generic one, and the generic one is the message this whole post is about avoiding.

Before release

Today, choose a length-limited field and submit an entry that exceeds its limit. Read the resulting message beside the field, compare its figure with the engineer's setting, and agree any correction before release.

Questions

What should an empty-field error say?

An empty-field error should tell the person what to enter. Use an instruction that names the field.

How should I test a range error?

Submit a value below the minimum, then a value above the maximum. Compare each message with the check that failed.

Sources and check date

Related posts

More posts