How to Add a Contact Form to Your Website | How-to Guide
Add a contact form to your website that actually delivers: pick the minimum fields, label them accessibly, handle errors and spam, prove a test enquiry reaches your inbox, and choose between built-in and embedded form tools.
A contact form on a website lets visitors send you a structured message without opening their email app, and keeps your address away from spam bots. Adding one takes five decisions: which fields, how they are labelled, what happens on submit, how spam is stopped, and where the messages go. The last one is where most forms fail, so this guide ends with a test you should run on every form you publish.
1. Choose the minimum enquiry fields
Ask only for what you need to reply usefully. Every extra field is one more reason to give up. A good default:
- Name (one field, not first/last)
- Email (or phone, if you reply by phone)
- Message
Add a field only when it changes how you reply. Worked example for a made-up cleaning company, "Brightside Cleaning":
| Field | Keep? | Why |
|---|---|---|
| Name, email, message | Yes | Needed to reply |
| Postcode / ZIP | Yes | Tells them straight away if the address is in their area |
| Service type (dropdown) | Yes | Routes regular vs one-off vs end-of-tenancy quotes |
| Phone | Optional | Some customers prefer a call; do not force it |
| Company, job title, "how did you hear" | No | Not used when replying to a home cleaning quote |
2. Consent and accessible labels
- Every field needs a visible label. Placeholder text alone disappears when people type and is poorly supported by screen readers.
- Connect labels to inputs (
<label for="email">with a matchingid) so tapping the label focuses the field. - Use the right input types (
type="email",type="tel") so phones show the right keyboard. - Mark required fields in text, not colour alone.
- Say what you will do with the details, and link your privacy policy. If you want to add people to a mailing list, use a separate unticked checkbox; do not bundle it into sending the enquiry. Privacy rules differ by country, so check what applies to you. Our privacy policy generator can help you draft a policy.
<label for="email">Email (required)</label>
<input id="email" name="email" type="email" autocomplete="email" required>
3. Submission, errors and spam
- On success: show a clear message on screen ("Thanks, we reply within one working day") and keep the promise you make there.
- On error: say which field is wrong and how to fix it, next to that field, and keep what the visitor already typed.
- Double submits: disable the button while sending.
- Spam: start light. A hidden "honeypot" field that humans never fill catches many bots with no effort for real visitors. Add a challenge such as reCAPTCHA or Cloudflare Turnstile only if spam continues.
4. Prove a test enquiry reached the chosen inbox
A form that looks fine but delivers nowhere is common: wrong address, messages filtered as spam, or an embed that was never connected. After publishing, run this test and write the result down:
CONTACT FORM TEST
Page tested (live URL):
Sent at (date/time):
Test name used: TEST - [your initials] - [date]
Delivered to inbox: [address]
Arrived? In spam? yes/no / yes/no
All fields came through correctly? yes/no
Tested on phone too? yes/no
Reply-to works (reply goes to the visitor)? yes/no
Repeat the test whenever you change the form, the destination address or your email provider.
5. Built-in forms vs embedded form tools
| Option | Good for | Watch out for |
|---|---|---|
| The website builder's own form | Simple enquiries; one less account to manage | Check where submissions are stored and emailed |
| Embedded form service (e.g. Google Forms, Typeform, Jotform, Tally) | Multi-step forms, file uploads, logic | Styling may not match; extra script weight; check each provider's current plan limits |
| Custom code posting to your own server | Full control, CRM integrations | You maintain spam protection and delivery |
Whichever you choose, put the form where the decision happens: the contact page, the end of each service page, and a short version in the footer or homepage.
Adding a form with We.Inc
In the We.Inc website builder you can describe the form you want in plain words (for example "a quote form with name, email, postcode and service type") and then adjust labels and layout with click-to-edit. AI building needs a paid plan, from Starter at $20/month (pricing); new We.Inc accounts can build a site free, with no card needed to start. Whatever you build with, run the delivery test above before relying on the form. Then check the page with the website grader, browse business templates, or estimate costs with the website cost calculator.
Start building your business website
Frequently asked questions
How many fields should a contact form have?
As few as you need to reply usefully. Name, email and message is a good default; add a field only if it changes how you respond, such as a postcode for a local service area.
Why am I not receiving contact form messages?
The usual causes are a wrong destination address, messages landing in spam, or an embedded form that was never connected. Send a clearly labelled test enquiry and check the inbox and spam folder.
Do I need a CAPTCHA on my contact form?
Not always. A hidden honeypot field stops many bots without bothering visitors. Add a CAPTCHA-style challenge only if spam keeps getting through.
Should I show my email address as well as a form?
It helps visitors who prefer email. Expect some extra spam if the address is shown in plain text.
More in Guides
- How to Add an Announcement Bar to Your Website
- How to Add a Back to Top Button
- How to Add a Blog to Your Website | How-to Guide
- How to Add a Cookie Banner to Your Website
- How to Add Crisp Chat to Your Website
- How to Add a Custom Domain to Your Website | How-to Guide
- How to Add Fathom Analytics to Your Website
- How to Add Google AdSense to Your Website
Start building
- how to make a website
- AI website builder
- free website builder
- website templates
- website builders by industry
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App