Sub topic 10
Designing the lead form
This chapter assumes you have read the earlier chapters on the offer, the headline, the call to action and the landing page structure. It also assumes you can read basic HTML and are comfortable with percentages. The form is the point where a visitor decides whether the offer is worth the effort of giving you their details. Everything above it on the page has done its job. The form either keeps that momentum or loses it.
What the form has to do
A lead form exchanges a visitor's information for your offer. The visitor pays with effort and with some risk: effort to type, and risk that their details will be misused or that they will be spammed. Form design is the work of keeping both costs low while still collecting what you need to follow up.
The cost a visitor feels is called friction. Friction is anything that makes completing the form harder, slower or more worrying than it needs to be. Common sources are:
- Too many fields.
- Unclear labels.
- Errors that appear only after submission.
- Requests for sensitive information with no explanation.
- A button that says nothing about what happens next.
Each field you add has a price. Fewer fields usually produce more leads, but the leads may be less qualified. The rest of this chapter is about finding a sensible balance.
Each arrow into "Leaves page" is a place where you lose people. Good form design reduces the number of exits and makes the error loop short and clear.
Deciding which fields to ask for
Start from the follow-up, not from the data you would like to have. For each field, ask what you will do with the answer in the first follow-up. If you cannot name a use, remove the field.
| Field | Usually needed? | Notes |
|---|---|---|
| Email address | Yes, if you deliver by email | The minimum for most offers |
| First name | Often | Allows personal greetings; ask only if you will use it |
| Company name | Sometimes | Useful for business offers; can often be inferred from the email domain |
| Phone number | Rarely | Ask only if someone will actually call; visitors resist it |
| Job title or company size | When qualifying matters | Helps sort leads, but costs conversions |
| Free-text question | Rarely | High effort; better placed after the main conversion |
A useful rule is to match the form length to the value of the offer. A one-page checklist can reasonably ask for an email address. A personalised audit or a demo request justifies more questions, because the visitor expects to give more in return.
Progressive profiling
You do not have to collect everything at once. Progressive profiling means asking for a small amount at the first interaction and gathering more details on later ones, for example in a follow-up email or on a second form for a returning visitor. This keeps the first conversion easy while building a fuller picture over time.
A minimal, well-built form
The following form asks for one field, labels it, states what the visitor agrees to, and uses a button that names the offer.
<form action="/subscribe" method="post">
<label for="email">Work email</label>
<input type="email" id="email" name="email" autocomplete="email" required>
<label>
<input type="checkbox" name="consent" value="yes" required>
Send me the checklist and occasional related emails. I can unsubscribe at any time.
</label>
<button type="submit">Get the free checklist</button>
</form>Several details here matter, and each addresses a specific kind of friction.
- A visible
<label>tied to the input withforandid. Labels stay visible while the visitor types, and clicking one focuses the field. They also let screen readers announce what the field is for. A placeholder alone disappears as soon as the visitor starts typing and is not a substitute. type="email". Browsers check the basic shape of the address and show a suitable keyboard on phones.autocomplete="email". The browser can fill the field in one tap. This removes typing, which is the largest single effort on mobile.required. The browser stops submission with an empty field and says why, before a round trip to your server.- A button that names the outcome. "Get the free checklist" tells the visitor what happens next. "Submit" does not.
Layout and usability decisions
One column
A single column of fields, in the order the visitor would expect, is easier to scan and complete than fields side by side. Multi-column layouts make people's eyes zigzag and are more likely to cause skipped fields, especially on small screens.
Labels above fields
Placing labels above their inputs works well on both desktop and mobile. It gives the label full width, copes with long text and translations, and avoids the label being hidden by zoom or narrow screens.
Inline validation and clear errors
Validation is checking that what the visitor typed is acceptable. Do it in two places:
- In the browser, for fast feedback, using attributes such as
required,typeandpattern. - On the server, always. Browser checks can be bypassed and must never be your only defence.
Error messages should say what is wrong and how to fix it. "Please enter an email address like [email protected]" helps. "Invalid input" does not. Place the message next to the field, keep what the visitor already typed, and move focus to the first error.
Mobile considerations
Many visitors arrive on phones, so check the form there first. Use the right input types (email, tel), make tap targets large enough for a thumb, and avoid dropdowns with long lists. Where a dropdown is needed, a short list of common choices is easier than a free-text box.
Reducing doubt near the button
People hesitate just before they submit. A short line close to the button can answer the worry they have at that moment, such as "No spam. Unsubscribe at any time." Keep such statements true. Consent wording is covered in the next chapter, and anything you promise here must match your actual practice.
Required versus optional fields
Mark which fields are required, and keep required fields to the minimum. If most fields are required, it is simpler to mark the few optional ones. If you ask for optional information at all, label it as optional so visitors do not guess. An optional field that looks required adds friction without giving you the data.
Spam and abuse protection
Public forms attract bots. Protecting the form should not punish real visitors.
- Honeypot field. A field hidden from people with CSS but visible to simple bots. If it arrives filled in, discard the submission. It adds no friction for real users.
- Rate limiting. Limit how many submissions one address can make in a period.
- Server-side validation. Reject malformed data regardless of what the browser allowed.
- CAPTCHA or similar challenges. Effective, but they add friction and can hurt accessibility, so use them only if simpler measures fail.
Email verification (sending a confirmation link) also filters fake addresses, at the cost of one extra step.
Single-step versus multi-step forms
A multi-step form splits the questions across several screens. It can feel lighter because each screen shows only a few fields, and the first easy question builds commitment. It also hides the total length, which can feel manipulative if the number of steps is large, so show a progress indicator. A multi-step form helps most when you need many answers. For one or two fields it only adds clicks.
Measuring whether the form works
You can only improve a form if you measure it. Conversion rate is leads divided by visitors, guarded against division by zero:
def conversion_rate(leads, visitors):
if visitors == 0:
return 0.0
return leads / visitors
visitors = 2400
leads = 96
print(f"{conversion_rate(leads, visitors):.1%}") # 4.0%Here 96 leads from 2,400 visitors gives 4.0%. To see where the form specifically loses people, also track how many visitors start filling it in and how many submit. A big gap between starts and submissions points to a problem in the form itself, such as a confusing field or an unclear error.
More leads is not always better
A shorter form often raises the number of leads, but a longer one may attract more committed people. Compare both stages of the funnel:
def lead_to_customer_rate(customers, leads):
return customers / leads if leads else 0.0
variants = {
"A: short form": {"visitors": 1000, "leads": 60, "customers": 3},
"B: long form": {"visitors": 1000, "leads": 35, "customers": 4},
}
for name, v in variants.items():
visit_to_lead = v["leads"] / v["visitors"]
lead_to_cust = lead_to_customer_rate(v["customers"], v["leads"])
print(f"{name}: {visit_to_lead:.1%} of visitors become leads, {lead_to_cust:.1%} of leads become customers")The output shows variant A turning 6.0% of visitors into leads and 5.0% of those leads into customers. Variant B gets only 3.5% of visitors to become leads, but 11.4% of its leads become customers, and it produces more customers overall (4 against 3). The version with more leads is not always the one with better leads. Judge a form on the outcome you care about, not on form completions alone. Later chapters on lead quality and testing return to this idea.
Common mistakes
- Asking for a phone number when nobody will call.
- Using "Submit" as the button text.
- Relying on placeholders instead of labels.
- Validating only in the browser.
- Clearing the form after an error.
- Hiding the form below a long page with no link or button leading to it.
- Failing to test on a phone.
Exercise
A landing page for a free pricing-guide PDF asks for email, first name, company, job title, company size and phone number. Conversion is low. Name two fields you would consider removing or deferring and explain how you would check that the change helped.
Show answer
Phone number and company size (or job title) are good candidates. Nobody needs to call someone who only wants a PDF, and the other fields are not needed for the first email, so they could be dropped or collected later through progressive profiling. To check the change, run the shorter form as a variant against the original and compare both the visit-to-lead rate and the lead-to-customer rate. If the shorter form raises leads but the share who become customers falls sharply, the extra fields were filtering for quality and the result needs a closer look.
Exercise
Why must a lead form be validated on the server even when it uses required and type="email" in the HTML?
Show answer
Browser checks only run in the visitor's browser. They can be bypassed by disabling them, editing the page or sending requests directly, so the server must check every submission itself before storing or acting on the data.