DEV Community

Digi Dwar
Digi Dwar

Posted on

How I Test a WordPress Contact Form Before Launch.

A contact form can show “Thank you, we received your enquiry” while the inbox stays empty. It can also send a message successfully but record the wrong service or count a failed submission as a lead.

When I test a small business website at DigiDwar, I follow the enquiry from the service page to the inbox. Here’s the checklist I use.

  1. Start on the service page I open the site in an incognito window and click the same button a visitor would use. If I click Discuss your Meta Ads campaign, the contact form should open with Meta Ads selected.

On one WordPress site, the link looks like this:
/contact-us/?service=Meta%20Ads

I also open /contact-us/ directly to check that the default option makes sense, and try an unrecognised value such as ?service=unknown to check that the form falls back gracefully. The visitor should still be able to choose a different service.

  1. Submit one enquiry and check the inbox I use a subject or message that’s easy to find, such as TEST — Meta Ads enquiry. Then I check three things:
  2. The page shows a clear confirmation after submission.
  3. The message reaches the intended inbox.
  4. The email includes the contact details, selected service, and message as entered. I also hit Reply to check that the reply goes to the person who filled out the form. If the page shows success but nothing arrives, I check spam and any available mail logs before marking delivery as working.
  5. Try a submission that should fail I leave a required field empty, enter an invalid email address, and check that the form explains what to fix. When I’m working on a custom PHP form, I also test server-side validation on staging with browser validation disabled. That catches cases where the browser rejects bad input but the server accepts it.

The expected result is simple: an invalid submission produces no success message and no enquiry email. On mobile, I also check that the error is visible and that the visitor can correct the field without retyping the whole message.

  1. Make sure tracking counts the right action If enquiry tracking is configured, I check that the lead event fires after the form reports a successful submission. A click on Submit only tells me someone tried. Test Expected tracking Valid enquiry One form lead event Submission with a missing required field Zero form lead events Refresh after success No second form lead event Click a WhatsApp button A separate WhatsApp click event

Keep the tracking check separate from the inbox check. A conversion event can confirm that the website reported success. The inbox confirms that the business received the message.

  1. Repeat the test on the live site The live site can have different mail settings and caching from staging. After launch, I repeat the test on a phone: service page → contact form → confirmation → inbox.

If I can follow that route and find the exact message I sent, I know the enquiry path works from the visitor’s side and the business’s side.

Written by DigiDwar, a web development and digital marketing agency in Greater Noida.

Top comments (0)