Fixed-price website design from £2,400View Prices

Website Form Design: How to Build Forms People Complete

The details that decide whether a visitor finishes your contact form or gives up halfway: fields, labels, errors, phones and what happens after sending.

Pages and Components guide. 7 minute read. Updated .

In short

  • Every field in a form is a small cost to the visitor. Ask only for what you need to take the next step.
  • Use one column, with a visible label above each field. Placeholder text is not a label.
  • Error messages should appear next to the field, say what is wrong and say how to fix it.
  • The right input types and autocomplete values bring up the correct phone keyboard and let browsers fill in details.
  • Confirm clearly when the form has been sent, and say what will happen next.

The form is where a website visitor becomes an enquiry. Everything else on the page, the headline, the photographs and the reviews, exists to bring someone to that point, and it is the point at which many of them leave. A form that is long, confusing or awkward on a phone undoes the work of the rest of the site.

Fortunately, good form design is well understood, and most of it comes down to removing obstacles between the visitor and the button.

Ask for Less

The single most effective improvement to most forms is to delete fields. Each one is a question the visitor has to read, think about and answer, and each is a reason to stop. For every field, ask whether you need it now, to take the next step, or whether you could ask later, once the conversation has begun.

Often askedUsually better
First name and last name in separate fieldsOne name field
A full postal address on an enquiry formA postcode or town, if location matters at all
Phone and email both requiredOne required and the other optional
How did you hear about us?Leave it out, or ask on the first call
Confirm your email addressA single email field, shown clearly so that mistakes are easy to spot
A row of dropdowns for budget and timingOne open question: tell us about the project

Mark the fields that are optional, or mark the required ones, and be consistent. If a field's purpose is not obvious, a few words explaining why you need it will reassure people. Collecting only what you need is also a principle of UK data protection law.

Layout and Labels

  • One column. A single column gives one clear path from top to bottom. Fields placed side by side are easy to miss, especially on a phone.
  • Labels above the fields. A label above its field is quick to scan, works on narrow screens and leaves room for longer wording.
  • Labels that stay visible. Placeholder text inside the field disappears as soon as someone types, leaving them to remember what was asked. It is also usually too pale to read.
  • Fields sized to their answers. A postcode field should be short and a message box large. The size is a hint about what is expected.
  • Related fields grouped. Contact details together and project details together, with space between the groups.
  • One clear button. Labelled with what it does, such as Send enquiry, not Submit.

The Right HTML

A great deal of good form behaviour comes free from using the correct HTML. The input type decides which keyboard a phone shows. The autocomplete attribute lets the browser offer to fill in details it already knows. And a label connected to its field makes the form usable with a screen reader and makes the label itself tappable.

<form action="/enquiry" method="post">
  <label for="name">Your name</label>
  <input id="name" name="name" type="text" autocomplete="name" required>

  <label for="email">Email address</label>
  <input id="email" name="email" type="email" autocomplete="email"
         required>

  <label for="phone">Phone number (optional)</label>
  <input id="phone" name="phone" type="tel" autocomplete="tel">

  <label for="message">How can we help?</label>
  <textarea id="message" name="message" rows="5" required></textarea>

  <button type="submit">Send enquiry</button>
</form>
A short enquiry form with connected labels, the right input types and autocomplete values.
FieldInput typeAutocomplete value
Nametextname
Emailemailemail
Phoneteltel
Postcodetextpostal-code
Companytextorganization
Code sent by text messagetext, with a numeric inputmodeone-time-code

Validation and Error Messages

Errors are where forms lose the people who were trying hardest to complete them. The aim is to help the visitor succeed, not to tell them off.

  • Check a field when the visitor leaves it, not while they are still typing.
  • Show the message next to the field it concerns, not only in a list at the top.
  • Say what is wrong and how to put it right: enter an email address in the format name@example.com.
  • Never rely on colour alone. Add an icon or the word Error, because red and green are hard for some people to tell apart.
  • Keep what the visitor has typed. Clearing a form after an error is the surest way to lose an enquiry.
  • Be generous with formats. Accept phone numbers with or without spaces, and postcodes in upper or lower case.
<label for="email">Email address</label>
<input id="email" name="email" type="email" autocomplete="email"
       aria-invalid="true" aria-describedby="email-error">
<p id="email-error" class="field-error">
  Error: enter an email address in the format name@example.com
</p>
An error message tied to its field, so that a screen reader announces it when the field receives focus.

Forms on a Phone

  • Make fields and buttons large enough to tap, with space between them.
  • Use text of at least 16 pixels in fields. Smaller text makes an iPhone zoom in when a field is tapped.
  • Use the input types above so that the email keyboard, number pad or phone keypad appears.
  • Avoid dropdowns for short lists. Two or three visible options are quicker to tap.
  • Keep the button in view, and make it the full width of the screen.
  • Test with the keyboard open, when half the screen is covered.

A form is often the hardest part of a page to get right on a small screen, which is one more reason to follow mobile-first design.

Long Forms and Multiple Steps

Some forms cannot be short: a mortgage enquiry, a job application, an insurance quote. Splitting a long form into steps makes it feel manageable, provided each step is a sensible group and the visitor can see how far they have come.

  • Start with the easiest questions. People who have begun are more likely to finish.
  • Show progress: step two of four.
  • Let people go back without losing their answers.
  • Save progress on long applications, so that an interruption does not mean starting again.
  • Ask only the questions that apply. If an answer makes a later section irrelevant, skip it.

Any public form attracts automated spam. The usual defences are a hidden field that only a bot would fill in, known as a honeypot, checks on how quickly the form was completed and, if those are not enough, a challenge service. Choose a challenge that does not make visitors solve puzzles, which frustrates people and can lock out those using assistive technology.

Tell people what you will do with their details, in a sentence near the button with a link to the privacy policy. If you want to add them to a marketing list, ask separately with an unticked box. In the UK, consent to marketing has to be a clear, positive choice, so a box ticked in advance does not count. This is general guidance, not legal advice, and the Information Commissioner's Office publishes the detailed rules.

After the Form Is Sent

  • Show a clear confirmation, on the page or on a thank-you page, so that nobody wonders whether it worked.
  • Say what happens next and when: we will reply within one working day.
  • Send a confirmation email if the enquiry is important.
  • Make sure the enquiry actually reaches someone. Test the form regularly, because forms fail silently.
  • Offer something useful while they wait, such as a link to prices or a guide.

If enquiries need to become bookings, a form can be replaced with a proper online booking system, which confirms the appointment there and then. The button that sends the form deserves as much care as the fields, as our guide to call-to-action buttons explains.

Putting It Into Practice

Reading about a technique is the easy part. Applying it to a real business, with real content and a launch date, takes judgement about what to use and what to leave out. DigitalPod is a UK-based design and web development studio that designs every site from a blank page and builds it by hand, so a technique is used because it helps the business and not because a template came with it. If you would like a website designer to handle it for you, startup website design is what we specialise in, websites start from £2,400 and our website redesign service brings an older site up to date.

Frequently Asked Questions

How many fields should a contact form have?

As few as you need to respond. For most enquiry forms that is a name, one way of replying and a message: three or four fields. Every additional field reduces the number of people who finish, so add one only if the answer changes what you do next.

Should form labels go above or beside the fields?

Above is the safer choice. Labels above their fields are quick to scan, work on narrow screens and stay visible while the visitor types. Labels placed inside the field as placeholder text disappear on typing and are often too faint to read.

Are placeholders bad in forms?

They are a poor substitute for labels, because they vanish as soon as someone starts typing and usually have low contrast. Used as well as a visible label, to show an example of the expected format, they are fine.

How do I stop spam through my website form?

Start with a honeypot, a hidden field that real visitors never see but bots fill in, and reject submissions completed implausibly fast. If spam continues, add a challenge service that works invisibly. Avoid puzzles that genuine visitors have to solve.

What should happen after someone submits a form?

They should see a clear confirmation that it was sent, be told what will happen next and how soon, and ideally receive a confirmation email. A form that simply clears, or a button that appears to do nothing, leaves people unsure and prompts duplicate enquiries.

Want a Website Built This Way?

DigitalPod designs and builds websites for startups and growing UK businesses, with everything handled in-house from the first sketch to launch. Startup website design starts from £2,400, or you can read what clients say in our Trustpilot reviews.

Get a quote

Related Web Design Techniques

More from our web design techniques guides. For costs, briefs and choosing a designer, see the startup blog.