Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Submit button not disabled while sending: how to fix it

CNV-055Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

After someone clicks Submit, the browser sends the form to your server. That takes anywhere from a fraction of a second to several seconds. If the button stays clickable during that time and gives no sign of progress, the visitor can click again. Each click can send a separate request.

This is the cause. The result, two leads or two charges, is covered in a separate guide on double-click submits. Here we fix the button itself: disable it while sending and show that something is happening.

Why it costs you leads or sales

The business impact is usually low, but it is not zero. Duplicate submissions fill your CRM with repeat contacts, trigger two autoresponders and make the lead look pushy or careless. Sales teams waste time merging records. On order or booking forms, a second click can create a second order or a clashing booking.

A button with no feedback also makes visitors doubt the form worked. Some will click again, some will reload and resubmit, and some will leave.

How a double submit happens
  1. First clickForm request starts
  2. No feedbackButton still looks active
  3. Second clickA second request is sent
  4. Duplicate leadTwo records and two emails

The button gives no feedback, so the visitor clicks again before the first request finishes.

How to check if your site has it

Test the button by hand
  1. Slow your connection

    Open your browser's developer tools (F12), go to the Network tab and choose a throttling preset such as 'Slow 3G'. This makes the sending delay long enough to see.

  2. Fill in the form and click Submit

    Use a test email address you control. Watch the button right after the click.

  3. Look for a change

    A good form greys out the button, changes its label or shows a spinner. If it looks identical and stays clickable, you have the issue.

  4. Click again quickly

    Click two or three times. In the Network tab, count how many POST requests to the form endpoint appear. More than one confirms it.

  5. Check the inbox or CRM

    See whether duplicate test entries arrived.

How to fix it

The principle is the same everywhere: disable the button when the form submits, change its label, and re-enable it only if the request fails. How you do it depends on your platform.

Disable the submit button while sending
  1. Check your form plugin's settings first

    Many form plugins disable the button and show a spinner by default. Look in the form's settings or button options for a 'Sending' or 'Loading' text and enable it. Menu names differ by plugin.

  2. Update the plugin

    Older plugin versions or heavy caching and script-optimisation plugins can break the built-in behaviour. Update, then exclude the form scripts from JavaScript delay or minify options if the button stops reacting.

  3. Add a small script if the plugin cannot do it

    Add the custom code snippet below through a header/footer code plugin or your child theme, and adjust the form selector.

Disable the submit button while the form sendsjavascript
document.querySelectorAll('form.lead-form').forEach(function (form) {
  form.addEventListener('submit', function () {
    var btn = form.querySelector('[type="submit"]');
    if (!btn || btn.disabled) return;
    btn.dataset.originalText = btn.textContent;
    btn.textContent = 'Sending...';
    // Disable after the submit event so the form value is still sent
    setTimeout(function () { btn.disabled = true; }, 0);
  });
});

// If you send the form with fetch/AJAX, re-enable on failure:
// .catch(function () { btn.disabled = false; btn.textContent = btn.dataset.originalText; });
Button behaviour

Before

  • Button looks the same after the click
  • Visitor clicks again to be sure
  • Two requests reach your server
  • Duplicate lead and double emails

After

  • Button greys out and reads 'Sending...'
  • Extra clicks do nothing
  • One request reaches your server
  • One lead, one confirmation

How to confirm it's fixed

Confirmation checks
  • With 'Slow 3G' throttling on, the button greys out or changes label right after the click
  • Clicking several times produces only one POST request in the Network tab
  • Only one test lead arrives in your inbox and CRM
  • If you block the request (Network tab > offline) the button becomes clickable again after the error
  • The fix works on mobile as well as desktop
  • Pressing Enter in a field also sends the form only once

How to prevent it happening again

Theme updates, form plugin updates and script-optimisation settings can quietly remove this behaviour. Add the throttled double-click test to your checklist whenever you change a form, theme or caching setup. Where duplicates would be costly, such as orders and bookings, also deduplicate on the server or in your CRM by email address.

Duplicate submissions by button behaviourExample numbers
Duplicate submissions by button behaviour (example)Fast form, no feedback: 3 duplicates per 100 leads; Slow form, no feedback: 12 duplicates per 100 leads; Slow form, button disabled: 1 duplicates per 100 leads0593121Fast form, no feedbackSlow form, no feedbackSlow form, button dis…duplicates per 100 leads

Example: illustrative numbers only. Duplicates are more likely when the form is slow and the button gives no feedback.

How FunnelGuard handles this

FunnelGuard does not check this yet. A double-submit check is a possible future addition, so today you will not get an alert for a button that stays active while sending.

What FunnelGuard does cover nearby: a robot visitor runs your real lead form on a schedule, checks each step, and confirms that the test lead reaches your inbox and CRM. If a broken form stops leads arriving, that is caught and re-checked from a second region before one alert goes out. It will not tell you the button can be clicked twice.

To watch for this yourself, repeat the throttled double-click test after every form or theme change, and look for duplicate contacts in your CRM by sorting on email address and creation time. A free read-only website audit and a Free plan (1 site, 2 journeys, daily checks, no card) are available if you want the surrounding journey monitored.

Questions people ask

Why does my form submit twice?

Usually because the submit button stays clickable while the first request is still sending, and the visitor clicks again. Other causes are pressing Enter and clicking together, or a script that triggers submission twice. Disabling the button on the form's submit event solves the most common case.

How do I disable a submit button after it is clicked?

Listen for the form's submit event, set the button's disabled property to true and change its label to 'Sending...'. Re-enable it if the request fails. Many form builders have a setting for this, such as Webflow's 'Please wait text'.

Should I disable the button on click or on submit?

Use the form's submit event. Disabling on click can stop the browser from submitting the form in some cases. The submit event fires only when the form is actually being sent, so it is safer.

Is disabling the submit button enough to stop duplicate leads?

It stops most accidental double clicks, but not all duplicates. Page reloads, back-button resubmits and retries can still send the form again. For orders and bookings, add a server-side check such as an idempotency key, or deduplicate by email in your CRM.

How can I test if my button is disabled while sending?

Open developer tools, set the Network tab to 'Slow 3G', submit the form with a test email and click again quickly. Count the POST requests. One request and a visibly changed button means it works.

Does FunnelGuard detect a submit button that is not disabled?

No. FunnelGuard does not check this yet; it is a possible future check. It does run your real lead form on a schedule and confirm test leads reach your inbox and CRM, which catches many other form failures.

Why is my submit button stuck disabled?

The script disabled it but never re-enabled it after an error or a slow response. Make sure your error handler sets disabled back to false. If the button never recovers, the form may also have a separate fault such as a spinner that never ends.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.