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.
- Visitor opens formField shows as required
- Submits with field emptyNo validation error appears
- Lead saved or emailedContact value missing
- Sales follow-upNo way to reach the person
The form accepts the blank value, so every later step works on bad data.
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
Open the form in a private window
This avoids autofill and saved data.
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.
Try spaces only
Type a few spaces in text fields. Many forms treat this as filled.
Check the HTML
Right-click the field, choose Inspect, and look for the required attribute. Also check the form tag for novalidate.
Check your inbox and CRM
Look for past entries with empty fields. They show the problem has already happened.
How to fix it
Open the form editor
In your form plugin (Contact Form 7, WPForms, Gravity Forms, Fluent Forms and similar), open the field settings.
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.
Check for conflicts
Disable optimisation or custom scripts that remove validation, then retest.
Edit the form section
In Online Store > Themes > Customize, or in the form app you use, open the field settings and set it as required.
Check theme code
In a custom Liquid form, add required to the input tag and remove novalidate from the form tag.
Look for scripts injected by tags
In Preview mode, check whether a Custom HTML tag changes the form, removes required attributes or submits it directly.
Fix or remove the tag
GTM cannot add real validation reliably. Fix the rule in the form itself.
Select the field
On the canvas, click the input and open Element Settings.
Tick Required
Publish the site and retest on the live URL, not the designer preview.
Open the form builder
Click the field and switch on the Required toggle in its properties.
Check hidden and custom fields
Make sure the field you need, such as email or phone, is the one marked required, then save and retest the live page.
Open the form settings
Select the form, click Settings, then the field, and turn on Required.
Publish
Retest on the published site.
Edit the form block
Click the form, open Edit, choose the field and switch Required on.
Check code injection
Look in Settings > Advanced > Code Injection for scripts that alter the form.
Add required and a pattern
Use required on inputs and remove novalidate unless you replace it with your own checks.
Validate on the server
Trim each value and reject it if empty, returning an error the page can show.
<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><?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 emailHow to confirm it's fixed
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
- 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.
Related issues
- CNV-030Invalid email acceptedFix guide
- CNV-032Validation error message not shown, form just does nothingFix guide
- CNV-033Error message shown in the wrong place or hidden off-screenFix guide
- CNV-037Client and server validation disagree (passes client, server rejects)Fix guide
- CNV-034Errors clear all entered dataFix guide
- CNV-029Valid email rejected (plus addressing, new TLDs)Fix guide