Tell the Visitor What Is Known
An error message should explain the problem clearly without pretending to know more than the system does. A missing required field is different from an uncertain delivery failure. Use wording suited to the actual failure state so the visitor can choose an appropriate next action.
Keep instructions close to the relevant field when possible, and provide a readable summary for a broader failure. Avoid blame or technical codes as the only explanation. The person needs to understand how to recover, not interpret an internal exception.
Offer a Practical Recovery Path
A hypothetical validation error identifies the missing reply information and returns focus appropriately. A submission failure explains that completion could not be confirmed and offers the practice's approved alternative contact route. Neither state promises that the message was received.
Be careful about duplicate requests. If the implementation cannot determine whether delivery happened, the wording and technical handling need thoughtful review. Do not encourage repeated clicking while silently creating several notifications.
Check Privacy and Accessibility Together
Do not expose submitted details in an error URL, analytics event, console dump, or publicly visible diagnostic message. The interface can identify the failed task without displaying private content. Developers can use appropriate internal diagnostics without turning the visitor's message into a troubleshooting artifact.
Test errors deliberately within a safe approved scope: missing required information, an invalid format, and the relevant failure case. Check keyboard focus, visible labels, mobile readability, and the alternative link. A happy-path screenshot does not show whether someone can recover when the form fails. Useful error handling is part of the contact experience, not an optional finishing detail.
Two Different Error-State Drafts
Hypothetical field message: Enter a reply email address in the format shown. Hypothetical submission-failure message: We could not confirm that your request was submitted. Use the practice's listed alternative contact option if the problem continues. The first helps correct an input; the second accurately preserves uncertainty about completion.
Put This Into Practice
Do not show a generic thank-you state when submission is uncertain.
Exercise relevant error paths safely and verify readable recovery instructions.
- Identify the actual failure state
- Write a clear recovery action
- Check keyboard focus and alternatives