By the end of this lesson you can
- Design forms that are quick and easy to complete.
- Choose when and how to validate input.
- Write helpful error messages and recovery paths.
The idea
Forms are where many products make or lose money. Good form design reduces effort and errors.
Structure
- Ask only for what you need. Question every field.
- Use one column, with labels above fields.
- Group related questions and, for long forms, split into steps with one topic each.
- Use the right input type: number keyboards for numbers, date pickers or separate day, month and year fields for known dates.
- Mark optional fields rather than required ones if most are required.
- Never use placeholder text as the label.
Validation timing
Validate when people leave a field (on blur) or when they submit, not while they are still typing. Exceptions include password requirements shown as a checklist. After an error, re-validate as they fix it so the message disappears when the problem is solved.
Error messages
Say what went wrong and how to fix it, in plain language: "Enter a date of birth in the past" rather than "Invalid input". Show errors next to the field and, on submit, in a summary at the top that links to each field. Keep everything people have entered.
Why it matters in real projects
Every unnecessary field and confusing error loses people. Forms are often the last step before a sign-up, purchase or application, so small improvements can have large business and social impact. Accessible forms are also a legal requirement in many places.
A realistic example
A council's parking permit form has 24 fields, validates every keystroke ("Invalid postcode" appears after typing "S"), and clears the whole form when there is any error.
The redesign removes seven unnecessary fields, splits the rest into four steps, validates on blur and submit, keeps entered data, and uses specific messages like "Enter a full postcode, like SW1A 1AA". The share of people completing the form online rises and phone calls to the council fall.
Step by step
Question every field
For each field, ask who uses the data and why.
Structure the form
Group fields, order them logically and split long forms.
Choose input types
Use appropriate keyboards and controls.
Plan validation
Decide timing and rules per field.
Write errors
Write specific, plain-language messages.
Design the error summary
Show a linked summary on submit and keep all data.
Common mistakes
Mistake Placeholders used as labels.
Instead Use visible labels above fields.
Mistake Validating while people type.
Instead Validate on blur or submit.
Mistake Generic error messages.
Instead Say what is wrong and how to fix it.
Check your understanding
Choose an answer, then check it. There is an explanation either way.
Practice exercise
Exercise · about 1 h 15 min
Form redesign
Redesign a sign-up or application form.
Steps
- Audit the fields and remove unnecessary ones.
- Restructure and split if long.
- Define validation timing and write all error messages.
- Design the error summary and test with someone.
Deliverable
Before and after designs, a validation table and test notes.
Self-assessment
Tick each item when it is true of your exercise. Be honest; this is for you.
4 items
Summary
- Ask for less and structure forms clearly.
- Validate on blur or submit, not mid-typing.
- Write specific, plain-language errors.
- Use error summaries and keep entered data.
Further reading
Third-party sources, chosen for reliability. They open in a new tab.
- Question pages (opens in a new tab)GOV.UK Design System
- Error message (opens in a new tab)GOV.UK Design System
Your notes
Marking complete updates your course and roadmap progress.