Write form errors that help people finish the task
A validation message is part of the work, not just a technical response. Someone who has entered a long request needs to know what prevented submission, where to correct it and whether the rest of their work remains intact.
“Invalid input” explains none of those things. “Choose a delivery location before sending the request” identifies both the problem and the next action, provided that requirement is actually necessary for the task.
Put instructions before avoidable errors
Show required information and format expectations before submission. A reference field should explain which reference is wanted, particularly when the user has several identifiers in an email or document. If a date must fall within a particular period, say which period and why it matters.
Do not use a placeholder as the only label. It disappears when someone starts typing and may leave them unable to check what a value means. Distinguish optional information from information needed later in the process; not every useful detail belongs on the first form.
Preserve the work already done
Consider a fictional supplier request containing contact details, a description and two attachments. One attachment is too large. The error should identify that file and the accepted limit while retaining the contact details and description. Explain whether the other file was accepted or must also be selected again.
For a long form, an error summary can help people locate outstanding problems. Link each item to its field, keep the field-level explanation nearby, and ensure the correction path works with a keyboard and assistive technology. W3C's validation tutorial describes accessible validation patterns and the need for server-side validation as well as browser assistance.
Separate invalid input from unavailable service
A correctly completed form can fail because the server is unavailable or the user's access has changed. Asking them to “check your details” in that situation sends them toward the wrong remedy.
If a submission result is uncertain, give a way to inspect existing records or recover the request. Do not encourage repeated submission without considering duplicates. If the session has expired, explain how the person can sign in again and what will happen to their draft.
Avoid exposing internal exception messages or sensitive record details. The user needs a safe explanation and a useful support reference; support staff need appropriate diagnostic evidence through their own tools.
Review messages in context
Test with a missing required field, an unavailable option, a rejected file and a submission interrupted after sending. Ask someone unfamiliar with the form to recover without coaching. Observe whether they can identify the problem and finish without re-entering unrelated information.
A polished success message matters too. It should say what has happened, what remains pending and where to find the request. The acceptance examples guide shows how to turn these outcomes into repeatable checks.