The actor has given the system something it cannot accept, and is about to find out on the system’s terms. Validation arrives at the field where the input happened, says what is wrong and how to fix it, and stays until the correction. A fault in what the system did with input it had accepted, a save that did not go through or a page that will not load, is reported through status feedback.
Persistence is the defining property — a message demanding action must outlive the glance, which makes validation the counterpart of transient feedback within status feedback’s three delivery shapes.
Timing
Reward early, punish late. A first-time entry should not be judged while the actor is still typing — flag it when they leave the field, or on submit. Once a field has been flagged, reverse the rule: re-validate on every keystroke, so the fix is confirmed the moment it lands rather than at the next blur.
Consequences
- the message sits at the field that produced it, says what is wrong and what would fix it, and stays there until the correction lands
- the timing rule inverts once a field has failed: judging a first attempt mid-typing is punishment, and waiting for the next blur to confirm a fix is withholding
- every message is prose somebody wrote, and a long form's worth of them is a body of writing that decides whether the actor recovers or abandons the form
Resources & references
- NN/g / How to Report Errors in Forms
- Smashing Magazine / A Complete Guide To Live Validation UX
- GOV.UK / Help users to recover from validation errors
Appears in
Making changes
- Designing the form, step 5 — Respond to invalid input
Related patterns
Enables
- Prompt scaffolding — “Check the request before it runs with validation to warn about missing parameters or underspecified instructions at the field that needs attention.”
- Wizard — “Check each step's inputs with validation at the field, before the actor can advance, so an early mistake does not carry into the steps that depend on it.”
Instantiates
- Status feedback — the persistent, correction-demanding delivery shape of status feedback
Complements
- Account access — “Check the identifier and other fields with validation, and keep account recovery in reach from the sign-in step for when credentials fail or are forgotten.”
- Account recovery — “Check requirements on the replacement secret as the actor types with validation before restoring access.”
- Password — “Surface requirements and rejections at the field—and before submission where possible—through validation.”
Tangential to
- Disabled state — disabling submit until the form is valid hides the problem this move exists to explain
Related to
- Editing in place — when the display is the control, the message has to fit beside the value rather than under a labelled field
Preceded by
- Forgiving format — “Follow parsing with validation for errors the parser cannot catch, and pair it with localization so regional dates, numbers, and addresses are read in the actor's locale.”
- Structured format — “Follow entry with validation at the field, since a value that matches the syntax can still fail semantic checks such as an expired card or an unknown code.”
Hosted by
- Form — the form is the surface that hosts fieldwise messages and wires them to submission