Sub topic 1
What a Form Is For: Fewer Fields, Clearer Purpose
Prerequisites
This chapter assumes you can write basic HTML with form, input, and button elements. It also assumes you can style text and spacing with CSS. No JavaScript is needed here. Later chapters on validation use it.
A form is a cost the user pays
A form is the point where a user hands information to a site. The user pays for that with time, effort, and some trust. Every field adds to the cost, and some users leave when the cost looks higher than the reward.
Because of this, the first design decision is not about labels or layout. It is about purpose. Ask what the form must achieve and what the minimum information is to achieve it.
Start from the goal
Write the goal as one sentence before you design anything. For example: "Let a visitor subscribe to the weekly newsletter." Then list every field you could ask for and test each one against that sentence.
The diagram shows the test applied to each candidate field.
Ways to reduce fields
Most cuts fall into a few categories.
| Technique | Example |
|---|---|
| Remove fields nobody uses | Drop "Title" or "Fax number" |
| Infer from other data | Derive the city from a postcode lookup |
| Combine fields | Use one "Full name" field instead of first, middle, and last |
| Defer to later | Ask for a phone number only when delivery needs it |
| Drop confirmation fields | Skip "Confirm email" and offer a show-password toggle for passwords |
Combining fields has a limit. If your system truly needs separate values, such as for sorting or legal records, keep them separate. Do not remove a field that the process needs. Only remove one that the process merely hopes for.
Example: a newsletter form
The goal is a subscription. The email address is the only thing needed to send a newsletter. A marketing wish list (job title, company size, phone) does not belong here.
<form action="/subscribe" method="post">
<label for="email">Email address</label>
<input id="email" name="email" type="email" autocomplete="email" required>
<button type="submit">Subscribe to the newsletter</button>
</form>Two details support the purpose. The required attribute marks the one field that matters. The button text says what will happen, where "Submit" would not. A clear action label tells the user what they are agreeing to.
Common errors
- Collecting data "just in case". Extra fields lower completion rates and raise privacy obligations. Each piece of personal data you store is data you must protect.
- Asking for something the user can't know yet. A required account number on a first contact form stops people.
- A vague purpose. If the page does not say what the form does and what happens next, users hesitate. State the outcome near the form, such as "We send one email a week. Unsubscribe at any time."
- Splitting into steps to hide length. Multi-step forms can help with long processes, but they do not replace cutting fields. Check that each step has a clear goal of its own.
Review checklist
- Can you state the form's goal in one sentence?
- Does each field serve that sentence?
- Could you infer, default, or defer any field?
- Does the button name the outcome?
Exercise
A "Contact us" form asks for name, email, phone, company, job title, and message. The goal is "let a visitor ask a question and get a reply by email." Which fields would you remove or defer, and why?
Show answer
Keep email (needed for the reply) and message (the question). Name is optional but useful for a greeting, so keep it only if the reply uses it. Remove or defer phone, company, and job title, because none are needed to send an email reply. They can be asked later if the conversation requires them.