When the Error Message Just Says Invalid

How to write online forms that help people recover instead of making them start over

By Arbab Naseebullah Kasi, Chief Executive Officer - CEO, Feel Worldwide Foundation Inc..

Picture someone applying for a training program on a phone. They have written a paragraph about why they want to join, found the document they were asked to upload, and checked the deadline twice. They tap Submit and get one word: “Invalid.”

Invalid what? The document? The date? Their entire application? They scroll up, change the phone number, and try again. The same message appears. This is an illustrative scene, but the design problem is ordinary: the form has information the applicant needs and gives them almost none of it. At that moment a red box is less useful than one truthful sentence.

If you run a nonprofit, a small business, a school program, or a volunteer group, you may never build a form from scratch. But you probably own at least one form that somebody needs to finish. Start there. Pick a form with something at stake and try to make it fail on purpose. The important question is not whether the form can spot a mistake. It is whether a person can recover after it does.

Name the field and give the next move

Consider a made-up volunteer application that allows PDF attachments no bigger than 5 MB. “Invalid attachment” leaves several possibilities open. If the system knows that the applicant uploaded a 9 MB PDF, it can say, “Your PDF is 9 MB. Upload a PDF that is 5 MB or smaller.” If the file is the right size but is a photo, the message can say, “Upload your document as a PDF. This file is a photo.” Those are different problems. Using the same message for both makes the applicant do the diagnosis.

Put the rule beside the field before the person uploads anything. The error message is a second chance, not the first place someone should learn the limit. And look at the rule itself. If staff can safely accept common photo formats and need only a legible image, requiring a PDF may be adding work for no benefit. A better sentence can explain a necessary rule, but it should not be used to defend an unnecessary one.

The W3C guidance on error identification explains a useful distinction: when a form automatically detects an error, identify the problem field and describe the error in text. Its separate criterion on error suggestions calls for a known correction when one can safely be given. Together they make a good editing test. Could someone tell what to change without seeing the red outline? And could they tell what to change it to?

Make the message easy to find

A beautifully written instruction is still useless if it appears off-screen. On a short form, a message beside the field can be enough for a person to find it visually. On a longer one, a summary at the top can show all the problems at once and link directly to the fields. The summary and the message beside each field should say the same thing, so the applicant does not have to translate one into the other.

The GOV.UK Design System demonstrates this with a working example. Its summary links to each affected answer and receives keyboard focus after validation fails. The matching field example illustrates a passport issue date that cannot be in the future. More importantly, the example attaches the explanation to the date input programmatically, not just visually. That relationship matters when a screen reader is how a person finds out what the form wants.

Basic labels are worth checking before polishing the language. In its 2025 study of one million home pages, WebAIM detected missing form input labels on 48.2% of the home pages it analyzed. That does not mean half of all online applications are inaccessible, and the scan did not measure whether error messages were helpful. It shows how often even a basic part of a form can be missing. An error summary cannot do its job if the field it points to is itself hard to identify.

Do not make people pay twice for one mistake

In the training application from the opening scene, the longest answer is also the hardest to replace. Finding the right file again is annoying. Rewriting a paragraph you composed on a phone can be enough to put the application off until tomorrow. If the form can safely preserve answers while the applicant fixes a field, preserve them. Test it during an actual failed submission rather than assuming the platform does it. If an attachment must be selected again, say so next to the upload control. Do not promise to keep sensitive information longer than your system can safely retain it.

Also separate mistakes the applicant can fix from failures that belong to the service. “Enter a date in the past” is a useful correction for the right field. “Our upload service isn’t responding” is a different situation. Do not send people back to hunt for a mistake if you know the problem is on your side. Tell them whether their submission was received if your system can verify it. If it cannot, say that and give them a way to check. On a payment or donation form especially, do not invite a second submission while the first one might still have gone through.

There are also moments when a message should withhold a detail. If a password reset request comes in, confirming whether the address belongs to an account can disclose information about somebody else. The plain-language approach is not to reveal everything the system knows. It is to share the safest useful next step, such as checking the inbox and using the service’s account-help route if nothing arrives. Clarity and restraint can coexist.

Run a small recovery test before you publish

Pick a test copy of the form and ask one person who did not build it to use made-up data. Give them a scenario instead of telling them where to click: “Apply for the training and attach this file.” Use a file type the form does not accept. Next, try two mistakes in the same submission, such as a required field left blank and a date the system does not allow. Watch where the person looks first and whether they can fix one problem without losing the rest of their work. Do not coach them through it. If you find yourself leaning over to explain a message, write down what you said. That may be the missing sentence.

Then try the same exercise on a phone and with a keyboard. If possible, ask a person who regularly uses assistive technology to try it as well, and budget for their time. A small test will not prove that the form is accessible to everyone. It will help you catch bad directions before the person relying on the form has to work around them. Record what happened in three lines: the situation, the message, and what the tester did next. Fix the problem that left the person least able to finish.

If your form builder will not let you edit its built-in messages, you still have options. Put the actual requirements beside the field, switch on the clearest validation the tool supports, and remove fields you never use. Offer a real help route that someone checks, with guidance on what not to send over email. If people repeatedly get stuck on a field you cannot improve, bring that evidence when it is time to choose a different tool. The test gives you a reason more useful than “we need a better website.”

The next time you open a form your organization owns, resist the urge to fill it out perfectly. Leave the wrong box empty. Give it a date it cannot accept. Bring it a file that will not fit. Then read the first thing it tells you. If you did not know how the form worked, would you know what to do next?

Previous
Previous

Can a New Customer Find Your New Door?

Next
Next

When a Board Member Knows the Vendor