Use when
- A single field has a specific correctable problem.
- The correction can be explained in one short sentence next to the field.
Render a field-adjacent validation message only when it helps correction, keep the typed value editable, and describe the exact acceptable format or missing requirement.
Users need to repair one invalid field while the entered value, label, hint, and correction remain in the same local context.
The full lab is intentionally loaded on request. That keeps this reading page fast while preserving the strong and weak states, keyboard checks, and failure scenarios.
The user is entering structured data into a known form control.
Render a field-adjacent validation message only when it helps correction, keep the typed value editable, and describe the exact acceptable format or missing requirement.
Neutral field with label, hint, and no error.
Error text separated from the field it describes.
Expose invalid state on the input and connect error text to the field description where possible.
Government Digital Service - checked
GOV.UK error message guidance places validation messages next to fields, preserves answers, and requires clear correction wording.
Government Digital Service - checked
GOV.UK error summary guidance is used only to distinguish submitted-page summaries from local inline field recovery.
Source trail checked: