Skip to content

Website advice

Make Website Form Errors Tell Customers What to Fix

A contact form can look finished until someone makes a perfectly ordinary mistake. Leave a required field blank, enter a phone number differently than expected or hit submit with a typo, and the page may offer nothing more helpful than a red outline. That is a customer trying to contact the business, not an interruption to the design.

THE SHORT ANSWER

Make the error visible in words, name the field that needs attention, explain the correction and confirm what happened after resubmission. Test the failure route as carefully as the successful one.

Test a form with a wrong answer on purpose

Open a real public form on your website and use clearly marked test details. Do not submit anybody else's personal information. Start by leaving one required field empty. Then try a value in the wrong format, such as letters in a field that expects a number. Record exactly what the page says.

Look at the message from the visitor's side. Does the screen explain which field needs work? Is it obvious how to return to that field? Does the form keep information already typed, or does the visitor have to rebuild the whole request? Those details change the amount of effort needed to recover.

Repeat the test on a phone. A message beside a field may be easy to spot on a wide screen and completely out of view after the page moves on a narrow one. Check the location of the message, not just whether the form software generated one.

A form that prevents bad input is doing part of its job. A form that makes the visitor guess what went wrong is leaving the other part unfinished. Save the exact test, device and result so the person maintaining the website can reproduce the problem.

Name the field and the correction

Replace vague messages such as Invalid input with a useful description where the form allows it. A hypothetical appointment request could say Email address: enter an address in the format name@example.com. That tells the reader what needs attention without claiming the appointment was submitted.

Use a message that matches the real requirement. If the phone number is optional, do not call it required. If the business accepts several phone formats, do not demand punctuation that the office does not need. The person responsible for the form should approve its rules before anyone writes the error text.

The W3C's WCAG guidance says that when an input error is detected automatically, the affected item must be identified and described in text. A red border can help, but color alone is not the explanation. This is specific accessibility guidance, not a claim that changing one message makes an entire site compliant.

Keep each explanation near the problem where practical and offer a clear summary when several fields fail at once. Work with a developer on the programmatic connections that help assistive technology identify messages. The visible words still need to make sense to someone reading them.

Explain unusual rules before submission

Some errors can be prevented with better field labels and short instructions. If the form needs a specific date format, display an example before the customer enters it. If a field is mandatory, say so. If there are two address fields with different purposes, name each one rather than hoping the layout explains the difference.

Ask why a restriction exists. A service request normally does not need a complex password rule. A customer inquiry may not need a street address before someone has even checked the service area. Do not add friction to solve a problem the business does not have.

W3C's guidance on labels or instructions is useful here: people should know what information is expected while completing a form. Clear requirements can prevent a failed submission in the first place. Do not wait until the error message to explain a rule the customer could have followed from the start.

Keep instructions close to the relevant entry. A long paragraph at the top of the page is easy to miss by the time a person reaches the last field. If the form changes, update the instruction and the validation rule together.

Verify the corrected form actually works

Fix the deliberate error and submit the same test again. The error should clear, and the form should show the actual result. A submitted request is not necessarily a confirmed appointment or quote. Match the success message to what the business really does after receiving the information.

Check where the test goes. Ask the person who handles inquiries to confirm whether it arrived, what details were included and whether any automated reply matched the website's promise. This is a delivery check, separate from seeing a green success message in the browser.

If the form fails because the server or email service is unavailable, avoid blaming a field the visitor completed correctly. Give an accurate general explanation and an approved alternative route when one exists. Do not invent a backup telephone number or promise a response time nobody has agreed to.

W3C's form-notification tutorial covers clear error and success feedback. Technical implementation matters, but the owner's test is straightforward: can the person understand the problem, make a correction and tell whether the request was received?

Put the error path in the change checklist

A form may behave differently after a website theme update, a new required field, a spam filter change or a switch to another booking service. Keep a small repeatable test for the next time something changes. Record the page address, the wrong entry used, the message displayed and the corrected result.

Test with an agreed internal email or other controlled test details. Keep real customer submissions out of a public bug report. If the test sends a message to staff, mark it as a test so it does not create a false inquiry or trigger unnecessary follow-up.

When several people edit the website, name who can approve form questions and who handles technical fixes. Changing a validation rule can change which inquiries the business accepts. That decision should not happen accidentally during a styling update.

If your business is planning a website replacement, include form errors in the working-preview check. Our [website brief](/brief) can help organize the pages and contact routes you need reviewed. Keep the evidence from the actual test, not a screenshot of how the empty form looked.

Further reading

LET’S TALK ABOUT YOUR BUSINESS

Wondering what we’d change about your website?

No technical brief needed. Tell us about the business, and we will confirm the scope and price. No payment with the brief.

Start my website brief