Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form shows an error but the lead was delivered: how to fix it

DLV-256Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A visitor submits your form and sees an error such as "There was a problem, please try again". But the lead did arrive in your inbox, form entries or CRM. The form told the visitor one thing and the back end did another.

It is the mirror image of a thank-you page that shows when the backend failed. Here the error is false: the data was stored, but something after (or around) the save reported a failure.

Common causes:

Typical causes of a false form error
CauseWhat happens
Slow third-party callThe form waits for the CRM or webhook, the browser or server times out, but the CRM still finishes the job.
Email send fails after saveThe entry is stored, then the notification email throws an error and the form reports failure.
Redirect or JavaScript errorThe save worked, but the script that shows the thank-you message crashes.
Gateway timeout (502/504)A proxy or CDN gives up before the server replies, though the server completed the request.
Anti-spam or reCAPTCHA response issueThe submit is processed, but the response check fails on the way back.
Partial failure in a multi-step handlerOne of several actions (for example a Slack ping) fails and marks the whole submit as failed.

Why it costs you leads or sales

The lead exists, so the damage is less obvious than a dead form. But it is real:

What a false error does
  • Visitors who see an error often leave and never know they were captured, so they may never expect your follow-up.
  • Visitors who retry create duplicate leads, which wastes sales time and can trigger double emails or double CRM automations.
  • No thank-you page means no conversion event, so ad and analytics platforms undercount real leads.
  • The error looks like a broken site and hurts trust.
  • Your team may see the lead and assume all is fine, so the bug stays hidden.
Where the false error appears
  1. Visitor submits formForm data sent to the server
  2. Lead savedEntry stored, email or CRM receives it
  3. Slow or failing stepTimeout, email error or script crash
  4. Error shownVisitor thinks it failed
  5. Conversion trackingNo thank-you page, no conversion hit

The lead is saved, but the visitor and your tracking never learn about it.

What one false error can lead toExample numbers
What one false error can lead to (example)Leave, lead saved but not tracked: 55 submissions; Retry once, duplicate lead: 35 submissions; Retry more than once: 10 submissions02142553510Leave, lead saved but…Retry once, duplicate…Retry more than oncesubmissions

Example: 100 real visitors who see a false error. Numbers are illustrative only.

How to check if your site has it

Test for a false error
  1. Submit a test lead

    Use a clearly fake name and an email you control, such as test+falseerror@yourdomain.com. Do this on desktop and on mobile.

  2. Watch what the visitor sees

    Note whether an error appears, how long it took, and whether a thank-you page or message ever showed.

  3. Check where the lead went

    Look at the form's entries list, the notification inbox and the CRM. If the lead is there despite the error, you have this issue.

  4. Open the browser Network tab

    In Chrome press F12, open Network, submit again and look at the form request. A 500, 502, 504 or a request that hangs, while the lead still arrives, points to a back-end step failing after the save.

  5. Read the logs

    Check the form plugin log, PHP or server error log and any webhook log for timeouts or exceptions at the time of your test.

  6. Look for duplicates

    Search your CRM for the same email appearing two or more times within minutes. That is a sign real visitors are retrying.

How to fix it

The principle is the same everywhere: show success once the lead is safely saved, and treat everything after that as a background task that can fail without scaring the visitor.

Fix the false error
  1. Find which step reports the failure

    Use the Network tab and logs to see whether it is the save, the email send, the CRM or webhook call, or front-end JavaScript.

  2. Separate saving from side effects

    Make the success message depend on the lead being stored, not on every integration finishing.

  3. Move slow calls to the background

    Send to the CRM or webhook through a queue or an automation tool instead of making the visitor wait.

  4. Raise or handle timeouts

    If the server or proxy cuts requests short, raise the timeout modestly and add a retry for the integration, not for the visitor.

  5. Fix the email sending

    If the notification email throws the error, set up authenticated SMTP or a transactional email service so it stops failing.

  6. Prevent duplicates

    Disable the submit button after the first click, and de-duplicate in the CRM by email address.

Platform specifics
  1. Check the form plugin's notification and logging settings

    In plugins like Gravity Forms, WPForms or Contact Form 7, check whether email failure or an add-on feed error changes the confirmation. Entry saving and email notifications are separate settings.

  2. Use SMTP

    Install an SMTP or transactional email plugin so mail does not fail silently or slowly through the default PHP mail function.

  3. Review add-on feeds

    Disable CRM or webhook feeds one at a time and resubmit to find which one causes the error.

Example: stop double submits and show success only on a saved responsejavascript
const form = document.querySelector('#lead-form');
form.addEventListener('submit', async (e) => {
  e.preventDefault();
  const btn = form.querySelector('button[type="submit"]');
  if (btn.disabled) return;
  btn.disabled = true;
  try {
    const res = await fetch('/api/lead', { method: 'POST', body: new FormData(form) });
    const data = await res.json();
    if (res.ok && data.saved) {
      window.location.href = '/thank-you';
    } else {
      throw new Error('Lead not saved');
    }
  } catch (err) {
    btn.disabled = false;
    alert('Sorry, something went wrong. Please try again.');
  }
});
Form behaviour before and after

Before

  • Success message waits for CRM and email
  • A slow CRM call times out and shows an error
  • Visitors retry and create duplicates
  • No conversion event fires

After

  • Success depends only on the save
  • CRM and email run in the background with retries
  • Button locks after first click
  • Conversion event fires on the thank-you page

How to confirm it's fixed

Confirmation checks
  • Submit a test lead and see a thank-you message or page with no error.
  • The lead appears once in form entries, inbox and CRM.
  • Repeat on mobile and on a slower connection (throttle in browser dev tools).
  • Temporarily slow or disable the CRM integration in a test and confirm the visitor still sees success while the failure is logged.
  • Check the conversion event reaches your analytics and ad platforms.
  • Double-click the submit button and confirm only one lead is created.

How to prevent it happening again

Prevention habits
  • Keep saving, notification and CRM sync as separate steps with their own logs.
  • Alert on integration failures, not only on visitor-facing errors.
  • Re-test the form after plugin, theme, CRM or email provider changes.
  • De-duplicate leads by email in your CRM.
  • Review form error logs every few weeks.
  • Run an automated test submission on a schedule.

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real lead form on a schedule, submits a marked test lead (utm_source=funnelguard, fg_test=1) and checks each step, including whether the visitor sees an error. It also checks whether the test lead actually reaches your inbox and CRM. When the form shows an error but the test lead arrives, the two results disagree, and that mismatch is what points to this issue.

A failure is re-checked from a second region before one alert goes out by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. FunnelGuard does not bypass CAPTCHAs or bot protection, so a form behind one may need a different test setup. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why does my form show an error but the email still arrives?

Usually the lead is saved or emailed first, then a later step fails or times out, such as a CRM call, a second email or a script that shows the thank-you message. The form reports the failure of that later step, even though the lead is already delivered.

How do I stop my contact form showing an error when it actually worked?

Make the success message depend only on the lead being saved. Move CRM syncs, webhooks and extra emails to a background queue, and log their errors separately instead of showing them to the visitor.

Why am I getting duplicate leads from my form?

Visitors who see a false error often click submit again, and each attempt creates a lead. Disable the submit button after the first click, fix the false error, and de-duplicate by email in your CRM.

Can a timeout cause a form error even though the data was saved?

Yes. If a proxy, CDN or server gives up (a 502 or 504) before the response returns, the browser shows an error while the server may have finished saving. Check the Network tab and server logs to see if the save completed.

Does a false form error affect conversion tracking?

Yes. If the thank-you page or success event never loads, your analytics and ad platforms do not record the conversion, even though you got the lead. Your reported conversions then understate real leads.

How can I tell if a failed-looking submission really reached my CRM?

Submit a test lead with a unique email, then search the form entries, inbox and CRM for it. If it is there despite the error, the failure is in a later step or in the response.

Can I detect a false form error automatically?

Yes. A scheduled test that submits the form, records what the visitor sees and checks whether the lead arrives can spot the mismatch. FunnelGuard does this and alerts you with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.