What the person is doing
The user is entering structured data into a known form control.
Foundation · lesson 5 of 34 · Input And Data Entry
Underlying principle: An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
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.
An input pattern carries a question, an expected answer, and a consequence. Visible labels, suitable controls, tolerant entry, and specific recovery keep that agreement clear.
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.
Invalid field with preserved user value and adjacent correction text.
Can the user edit the failing value directly from the error state?
The message names the field problem and the correction in plain language.
The user is entering structured data into a known form control.
Open the working example, try its controls, and compare the behavior against the decision guidance.
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.
Invalid field with preserved user value and adjacent correction text.
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: