UI patterns
Forms
Ask only for what the service needs, explain sensitive requests and help people correct errors.
Ask for what the task needs#
For every field, record why the service needs it and whether it must be required. Confirm regulatory requirements with the responsible team rather than relying on an existing form.
Labels and hints#
- Keep a visible label associated with each field. Placeholder text alone disappears as people type and is not a replacement for a label.
- Put examples and format instructions in persistent hint text, associated with the input.
- Explain sensitive requests where they occur. State the information used and the purpose of the check, based on the actual service and privacy notice.
Label: Bank Verification Number (BVN)
Hint: 11 digits. Dial *565*0# from the phone number registered for your BVN to check yours. A ₦20 service fee applies.
Purpose template: We use your BVN to [specific identity check]. [Explain the information accessed and link to privacy information].
The retrieval instructions and fee are sourced and dated in Government IDs. Replace the purpose template with verified information before use. Do not add a blanket claim about account access.
Validation#
- Avoid showing errors while someone is still entering a valid value. Choose validation timing through testing.
- Explain how to correct a problem. Associate each error with its field and do not rely on colour alone.
- For a failed submission, use a tested error-summary pattern, with focus moved to the summary and links to the affected fields. Preserve entered information where safe.
- Distinguish invalid input from a service or connection problem. See Error messages and the GOV.UK error-summary pattern.
Nigerian service considerations#
- Accept supported local and international phone formats, including spaces. Normalise only when the number is unambiguous; confirm country context rather than guessing.
- Support the names your audience uses. See Inclusive writing.
- Require address fields only when needed for the task. Help people find a required postcode; never invent one. See Address formats.
Evidence and limits#
Standards-informed guidance and illustrative templates. The linked GOV.UK pattern supports form-error implementation; the NIBSS source supports BVN retrieval. Neither validates the service’s data-access claims or all field choices. Test the complete journey. For contributions, use the evidence record in Editorial standards.
Related guidance#
Spotted a problem with this page? Suggest an edit on GitHub.