- UI or UX
- UI + UX - Field-level validation feedback
- UI guidance
- Render a labeled field with hint text, field-adjacent error text, invalid styling, preserved value, and corrected state.
- UX guidance
- Help users correct a specific field without losing or re-entering the value they already typed.
- Good UI
- Error text appears next to the field with readable spacing, persistent label, hint text, and the invalid value still visible.
- Bad UI
- Only a red border with no message.
- Good UX
- Validation appears after blur or submit when it helps correction.
- Bad UX
- Showing errors before users type.
- Best fit
- A single field has a specific correctable problem.
- Avoid when
- The main recovery task is finding several errors across a submitted page.
- Required state
- Neutral field with label, hint, and no error.
- Accessibility burden
- Expose invalid state on the input and connect error text to the field description where possible.
- Common misuse
- Showing field errors before users have interacted with the control.