Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Required field can be left blank and the form still submits

CNV-031Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A field is marked as required (often with a red asterisk), but the form still submits when it is empty or contains only spaces. The visitor sees a thank-you page, your analytics records a conversion, and the lead arrives with a missing value.

Common causes: the required attribute was never added, the form has novalidate and no script replaces the browser check, a custom script or page builder setting skips validation, the field is hidden by conditional logic but still marked required, or the server accepts whatever it receives. Only a server-side check is a real guarantee, because browser checks can be skipped.

Why it costs you leads or sales

A lead with no email or phone cannot be called or emailed. It still counts as a conversion, so your reports look healthy while the sales team has nothing to work with. Ad platforms also learn from these empty conversions and may send you more of the same traffic.

Where an empty required field breaks the path
  1. Visitor opens formField shows as required
  2. Submits with field emptyNo validation error appears
  3. Lead saved or emailedContact value missing
  4. Sales follow-upNo way to reach the person

The form accepts the blank value, so every later step works on bad data.

Usable leads out of 100 submissionsExample numbers
Usable leads out of 100 submissions (example)Submissions recorded: 100 leads; Usable leads (blank allowed): 82 leads; Usable leads (fixed): 100 leads0387710082100Submissions recordedUsable leads (blank a…Usable leads (fixed)leads

Example: illustrative numbers only. If some submissions arrive blank, the leads you can act on drop even though the conversion count stays the same.

How to check if your site has it

Test the empty submit by hand
  1. Open the form in a private window

    This avoids autofill and saved data.

  2. Leave each required field empty, one at a time

    Fill everything else correctly, then submit. You should see an error and no thank-you page.

  3. Try spaces only

    Type a few spaces in text fields. Many forms treat this as filled.

  4. Check the HTML

    Right-click the field, choose Inspect, and look for the required attribute. Also check the form tag for novalidate.

  5. Check your inbox and CRM

    Look for past entries with empty fields. They show the problem has already happened.

How to fix it

Make the field required on your platform
  1. Open the form editor

    In your form plugin (Contact Form 7, WPForms, Gravity Forms, Fluent Forms and similar), open the field settings.

  2. Turn on Required

    In Contact Form 7 add an asterisk to the tag, for example [email* your-email]. In other plugins tick the Required option.

  3. Check for conflicts

    Disable optimisation or custom scripts that remove validation, then retest.

Required fields in plain HTMLhtml
<form action="/contact" method="post">
  <label for="email">Email</label>
  <input id="email" name="email" type="email" required>
  <label for="name">Name</label>
  <input id="name" name="name" type="text" required pattern=".*\S.*">
  <button type="submit">Send</button>
</form>
Server-side check (never trust the browser)php
<?php
$email = trim($_POST['email'] ?? '');
$name  = trim($_POST['name'] ?? '');

if ($email === '' || $name === '') {
    http_response_code(422);
    exit('Please fill in your name and email.');
}
// continue: save the lead, send the email

How to confirm it's fixed

Empty submit behaviour

Before

  • Empty email submits
  • Thank-you page appears
  • Conversion tag fires
  • Lead has no contact detail

After

  • Empty email is blocked
  • Clear error next to the field
  • No thank-you page, no conversion
  • Only complete leads arrive
Confirmation checks
  • Each required field blocks submission when empty
  • Spaces-only values are rejected
  • An error message appears next to the field
  • A valid submission still goes through and reaches your inbox or CRM
  • No conversion tag fires on a blocked submit
  • Tested on mobile and desktop

How to prevent it happening again

Re-test the empty submit after every form edit, theme update, plugin update or change to tracking scripts. Keep the rule in two places: the form markup for fast feedback, and the server as the final guard. Add a note to your launch checklist so new forms get the same test.

How FunnelGuard handles this

FunnelGuard detects this issue today. It runs a negative-path step on your form: the robot visitor submits with a required field left empty and then asserts that an error appears. If the form goes through instead, the check fails. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent). The Free plan covers 1 site and 2 journeys with daily checks and no card, and every paid plan has a 3-day free trial.

Questions people ask

Why does my form submit even though a field is marked required?

The required rule is probably not enforced. Common causes are a missing required attribute, a novalidate flag on the form, a script that submits the form directly, or a server that accepts empty values. Check the field in your form builder and inspect the HTML.

How do I make a form field required?

In a form builder, open the field settings and switch on Required. In HTML, add the required attribute to the input. Then also reject empty values on the server, since browser checks can be bypassed.

Is the HTML required attribute enough?

No. It gives quick feedback in the browser, but it can be removed or skipped by scripts and bots. Always repeat the check on the server before saving or emailing the lead.

What does novalidate do on a form?

The novalidate attribute on a form tag turns off the browser's built-in validation, including required. Remove it unless you replace it with your own validation that blocks empty submissions.

Why does a spaces-only value pass a required field?

A few spaces are not empty, so a basic check accepts them. Trim the value on the server and, in HTML, use a pattern such as .*\S.* to demand at least one visible character.

How do I test that a required field blocks empty submissions?

Open the form in a private window, leave one required field empty, fill the rest and submit. You should see an error and no thank-you page. Repeat for each required field.

Can I detect this automatically?

Yes. FunnelGuard runs a negative-path check that submits the form with a required field empty and asserts that an error appears. If the form submits instead, you get an alert.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: negative-path step + assert error.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.