UX5: Sketches, wireframes and forms

Lesson 4 of 5 · reading 15–25 minutes; practice and project time is on the module page

Forms that people complete

🎯You'll be able to

Design forms with visible labels, the right input types, helpful hints and clear errors, asking only for what's needed.

🏠The everyday picture

A good bank teller asks only what they need, one thing at a time, and tells you exactly which box you missed. A bad one hands you a four-page form and says "it's wrong" without pointing.

📘What it really is

📝A worked example

Input: the starter prototype/details.html.

Starter Problem Reference design
placeholder="Name", no label Disappears; not a label <label for="name">Full name</label> above the box
placeholder="Phone", plain text field No number pad; no format Label "Mobile number", hint "10 digits…", type="tel", inputmode="numeric"
Red border on error Colour only; no message Message "Enter your mobile number as 10 digits", aria-invalid, summary with links
"Submit" Vague "Book appointment"

Expected output: tests 2, 4 and 5 of npm run test:prototype pass. Note that the accessibility checker axe reports only one label problem on the starter's search page (the checkbox); it accepts a placeholder as a name, which is why test 2 checks for visible labels.

🌍Where it's used

📝Case scenario

A railway concession form asked for date of birth in three dropdowns. Older applicants scrolled through 100 years and often picked the wrong one. A single text field with the hint "For example, 15 08 1958" cut errors and time.

🖱️Try it

List every field you've been asked for when booking anything online recently. Mark each as needed, optional or unnecessary. Success: at least one field you'd remove, with a reason.

⚠️Common mistakes

🛠️For your project

Project 2's tests 2, 4 and 5 check visible labels, worded errors linked to fields and a specific message for a short phone number.

✅Quick check

Why aren't placeholders enough as labels?

Show the answer

They disappear while typing and often have poor contrast, so people forget what the field is.

What should happen after a form fails to submit?

Show the answer

Messages next to each wrong field, a summary at the top with links, focus on the summary, and the typed input kept.

← PreviousMobile-first and responsive layout
ProLearners Assist