The form that says nothing
A new patient types a message, taps Send and the page reloads with the form empty or the same, and no explanation. Did it go through? Did it fail? Many practice forms behave this way when one field is wrong, and the visitor, unsure, closes the tab. A lead that was ready to call becomes silence.
The W3C's Error Identification criterion, which we read before writing, says that when an input error is detected automatically, the item in error is identified and the error is described in text. It adds that it is not enough to redisplay the form without a hint that the submission failed, and that color or text styling can be used as long as errors are also stated in text.
What a good message contains
- The name of the field, in the same words as its label, such as Email address.
- What is wrong, in plain terms: missing, too short, or not in the expected form.
- What to do next, in the same sentence where possible. The W3C notes that a message can meet both Error Identification and the separate Error Suggestion criterion at once, with an example like Email is not valid.
- A position next to the field, plus a short summary at the top for forms with several fields.
| Instead of | Write |
|---|---|
| Error | Phone number needs ten digits, such as 561 555 0100 |
| Invalid input | Email address is missing the @ sign |
| Please correct the highlighted fields | Two fields need attention: Name and Phone number |
| Submission failed | We could not send your message. Please call the office, or try again in a minute |
Keep private details out of it
An error message should never ask for more than the form already needs, and it should never repeat what a patient typed in a message box. A contact form is not the place for symptoms or medical history. If your form allows a free-text message, add a note that the form is not for emergencies or health details, as covered in our guide on the note under a contact form.
A failed send needs a phone number
Sometimes the problem is the website, not the patient. Show a clear failure message that includes the office phone number as a tappable link, so the visitor has another way to reach you. Then find out why the form failed, using the steps in testing contact form emails that go to spam or never arrive.
Test it yourself without sending a real lead
- 1On a staging copy or with your web designer's help, open the form and leave the required fields empty before pressing Send.
- 2Read the messages aloud. Each should name a field and say what to do, without relying on a red border.
- 3Fill the email with a made-up bad address and check the message again.
- 4Use only a test setup. Never submit a live form to try it, because a real submission reaches the office inbox and your reports.
Finally, look at the form on a phone. The message should sit beside the field rather than at the top of a long page where it scrolls out of sight. Our guide to online appointment request form fields helps decide which fields are needed at all, since fewer fields means fewer errors. Catching a mistake before it is sent is better still, and a review-your-answers step on a booking form describes a short screen that lets the patient fix it.
Frequently asked questions
Is a red border enough to show an error?
No. The W3C says errors must be described in text, though color can be used as an extra cue. A visitor who cannot see the color still needs the words.
Where should the error message appear?
Next to the field that has the problem, and also in a short summary near the top when several fields need attention. On a phone, make sure it is visible without scrolling.
Should the message repeat what the patient typed?
Not for free-text messages. It is safer to name the field and the problem, and leave out anything the patient wrote about their health.
How do we test without sending a real lead?
Use a staging copy or a test setup arranged with your web designer. Do not submit the live form to try it, since the real office inbox and reports would receive it.
Does clearer error wording lead to more forms sent?
We cannot promise a number. Compare the count of completed forms in your monthly report before and after the change, and keep the change if the count holds or rises.
Sources
- W3C Web Accessibility Initiative — Understanding Success Criterion 3.3.1: Error Identification