How to Add a Contact Form to Your Website
A website only earns its keep when people can reach you from it. There are three common ways to do that: a WhatsApp button, an email link and a contact form. Each suits a different kind of customer, and many small business sites are better off with two of them.
The three options
WhatsApp button
A button that opens a chat with your number, often with a message already typed in. For many Nigerian businesses this is where customers already are, so it gets the most use.
Good for: quick questions, orders, prices and bookings from people on their phones.
Watch out for: it only works if someone answers. Messages also sit in one person's phone, mixed with family chats, which is hard to track if you have staff.
Email link
A link that opens the visitor's email app with your address filled in. It is the simplest option and costs nothing.
Good for: suppliers, companies and anyone sending documents.
Watch out for: on many phones and shared computers, tapping it opens an email app the visitor has never set up, and they give up. Your address is also visible on the page, where spam bots can collect it.
Contact form
A set of fields on the page. The visitor types a message and presses send, and it arrives in your inbox. They never leave your site.
Good for: enquiries that need detail, such as quotes, project briefs, admissions questions or appointment requests. It also suits people who would rather not give out their WhatsApp number.
Watch out for: a form that is too long, or one that fails without anyone noticing.
| Option | Best for | Main risk |
|---|---|---|
| WhatsApp button | Fast chats and orders | Messages lost in a personal phone |
| Email link | Suppliers and documents | Visitor's email app not set up |
| Contact form | Detailed enquiries | Spam, or failures nobody notices |
A common setup is a WhatsApp button for quick questions and a form for anything that needs detail. Let the customer choose.
What fields to ask for
Every extra field loses you some messages. Ask only for what you need to reply well.
For most businesses, this is enough:
- Name
- Email or phone number, so you can reply
- Message
Then add one or two fields only if they save a round of back and forth:
- A dropdown for the type of enquiry, such as quote, booking or complaint, if different staff handle each.
- A preferred date for a salon, clinic or event venue.
- A budget range if you often get enquiries far outside what you offer.
Skip fields you can ask about later, such as company name, address or "how did you hear about us". Make only the reply field and the message required.
Small details that matter
- Label every field clearly above the box, not just with faded text inside it that disappears when someone starts typing.
- Make the button say what happens, such as "Send message".
- After sending, show a clear thank-you message and say when you usually reply, for example within one working day.
- Make sure the form works on a phone. Most visitors will use one.
Dealing with spam
Any form on the public web will attract some spam. A few habits keep it under control:
- A hidden honeypot field. It is invisible to people but bots fill it in, so those submissions can be dropped.
- A spam check service or captcha. Use one only if spam becomes a real problem, because it adds effort for real customers too.
- Do not show your email address next to the form. The form is there so you do not have to.
- Never act on links or attachments in a form message you were not expecting. Treat them with the same caution as a suspicious email. Our guide on how to spot a phishing website covers the warning signs.
Make sure messages actually arrive
A broken form is worse than no form, because customers think they have reached you. Before you rely on one:
- Send a test message from your phone and from a computer.
- Check that it arrives, and check the spam folder the first time.
- Mark the sender as safe in your email so future messages land in your inbox.
- Test it again every few months, and after any change to the site.
- Decide who checks the inbox and how often. A form nobody reads is the same as a closed shop.
Adding one to your site
On a static site, such as one hosted free on GitHub Pages, there is no server of its own to send email. A form service fills that gap: the form sends each message to the service, and the service emails it to you.
That is how our contact form add-on works. The Web3Forms contact form is NGN 10,000, a one-time price with no recurring fee. You get a working contact form on your site that emails submissions straight to you, with no WhatsApp or Google Form redirect needed. It can be added to any package on our pricing page.
If you are still deciding how much your site needs, read one page vs multi-page website or what to prepare before getting a website. Questions about your own site can go through our contact page.