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.
- First clickForm request starts
- No feedbackButton still looks active
- Second clickA second request is sent
- 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
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.
Fill in the form and click Submit
Use a test email address you control. Watch the button right after the click.
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.
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.
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.
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.
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.
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.
Check your theme's form
Most Online Store 2.0 themes handle this for contact and newsletter forms. Test it with throttling before changing anything.
Edit the theme if needed
Go to Online Store > Themes > Edit code and open the section or snippet that holds the form. Add the
disabledbehaviour with the script below, or use theonsubmitattribute on the form.Do not touch checkout
Checkout buttons are controlled by Shopify. Only change forms in your own theme.
Set the waiting text
Select the Submit button in the Designer, open Element settings and fill in the 'Please wait text' field. Webflow disables the button and shows this text while sending.
Publish and test
Publish the site and test on the live URL with throttling, as the Designer preview can behave differently.
Use the native form or survey builder
Native GoHighLevel forms normally handle button state themselves. Test the published form with throttling.
For custom HTML forms
If you embed your own HTML, add the script below with a Custom JS/HTML element, adjusting the form selector.
Use Wix Forms
In the editor, select the form, open Settings and the submit button settings, and check for a loading or 'Sending' state. Test the published site.
Velo users
If you use Velo code, call
$w('#submitButton').disable()at the start of your submit handler andenable()in the error handler.
Test the built-in form block
Squarespace form blocks normally show a 'Sending' state. Test the published page with throttling.
Add code only if needed
If the button stays active, add the script below via Settings > Advanced > Code Injection (footer) on a plan that allows code injection.
Disable on submit
Add a submit handler that sets
button.disabled = trueand updates the label. See the snippet below.Re-enable on error
If the request fails, set
disabled = falseso the visitor can retry.Guard on the server too
Disabling is only a front-end measure. For orders and bookings, also use an idempotency key or a unique token so a repeated request is ignored.
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; });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
- 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.
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.
Related issues
- CNV-054Double-click submits two leadsFix guide
- CNV-043Submit button does nothingFix guide
- CNV-044Submit shows spinner foreverFix guide
- CNV-066Lead sent to CRM twice (duplicate contacts)Fix guide
- CNV-056Form data lost on browser back buttonFix guide
- CNV-057Form times out on slow submit (serverless cold start)Fix guide