Skip to content
Design Academy My progress

Stage 7 · Lesson 6 of 11

Forms and validation

Labels, input types, inline validation and error recovery.

  • Intermediate
  • 40 min
  • 3 check questions
  • Exercise: 1 h 15 min

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

  1. Question every field

    For each field, ask who uses the data and why.

  2. Structure the form

    Group fields, order them logically and split long forms.

  3. Choose input types

    Use appropriate keyboards and controls.

  4. Plan validation

    Decide timing and rules per field.

  5. Write errors

    Write specific, plain-language messages.

  6. 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.

Question 1 of 3When should most validation happen?
Show answer

When leaving a field or on submit. Avoid interrupting people mid-typing.

Question 2 of 3Which error message is best?
Show answer

Enter a date of birth in the past. It is specific and actionable.

Question 3 of 3Why not use placeholder text as labels?
Show answer

It disappears when typing and often has poor contrast. Labels must stay visible.

Practice exercise

Exercise · about 1 h 15 min

Form redesign

Redesign a sign-up or application form.

Steps

  1. Audit the fields and remove unnecessary ones.
  2. Restructure and split if long.
  3. Define validation timing and write all error messages.
  4. 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.

Your notes

Marking complete updates your course and roadmap progress.

Back to Interaction design and prototyping Roadmap