On this page
What this issue is
A double-submit is when the same form is sent more than once by the same person within a few seconds. It can be a double click, a tap on a slow phone, pressing Enter and then clicking, or the browser retrying after a timeout.
The page treats each send as a new request. Your CRM gets two identical contacts, your shop creates two orders, and your tracking tags may fire twice.
- Visitor clicks SubmitFirst request sent
- Page shows no changeButton stays active, no spinner
- Visitor clicks againSecond identical request
- Duplicate lead or orderTwo records and two conversions
The first click works. The second click sends a duplicate before the page reacts.
Why it costs you leads or sales
Duplicates look harmless, but they cause real costs. Sales teams call the same person twice. Customers are charged twice or get two confirmation emails and lose trust. Refunds and clean-up take time.
Reporting also suffers. If a conversion tag fires twice, Google Ads, Meta or GA4 count two conversions. Bidding algorithms then learn from inflated data, and your cost per lead looks better than it is.
Example: 100 real people submit, 12 of them submit twice. The CRM and ad platform both show 112.
How to check if your site has it
Look for duplicates in your data
Export recent leads or orders and sort by email address and time. Two rows with the same email within a few seconds are a strong sign.
Double-click the submit button
On a test version of the form, click submit twice quickly. Use a test email so you can spot the copies.
Throttle the network
In Chrome DevTools, open the Network tab, set throttling to Slow 4G, then submit. Slow responses are when people click again.
Watch the requests
In the Network tab, count the POST requests sent. Two means the form is not protected.
Check your tags
Use Google Tag Assistant or the GA4 DebugView to see if the conversion event fires twice.
How to fix it
Use three layers. The button fix stops most cases. The one-time key and server check catch the rest, including retries and refreshes.
Disable the button on submit
Set the button to disabled and show a loading label as soon as the form is submitted. Re-enable it only if the request fails.
Guard against repeat events in code
Keep a flag such as isSubmitting and ignore any submit event while it is true. This also covers Enter key presses.
Send a one-time key
Generate a unique ID when the form loads and send it with the request. The server stores it and refuses a second request with the same ID.
De-duplicate on the server
For leads, match on email plus form ID within a short window and update instead of inserting. For orders, use your payment provider's idempotency feature.
Fire conversion tags once
Trigger the conversion tag on the confirmation page or success event only, and avoid firing on the click itself.
const form = document.querySelector('#lead-form');
let isSubmitting = false;
form.addEventListener('submit', async (e) => {
e.preventDefault();
if (isSubmitting) return;
isSubmitting = true;
const button = form.querySelector('[type="submit"]');
button.disabled = true;
button.textContent = 'Sending...';
try {
const res = await fetch(form.action, {
method: 'POST',
body: new FormData(form),
headers: { 'Idempotency-Key': form.dataset.key }
});
if (!res.ok) throw new Error('Request failed');
window.location.href = '/thank-you';
} catch (err) {
isSubmitting = false;
button.disabled = false;
button.textContent = 'Try again';
}
});
// Set a unique key when the page loads
form.dataset.key = crypto.randomUUID();Check your form plugin settings
Many form plugins have an option to disable the submit button after click or to prevent duplicate entries. Look in the form's settings or the plugin's general settings and turn it on.
Add the script if there is no option
Add the JavaScript above with a code snippets plugin or your child theme, and change the form selector to match your form.
Disable the checkout button
For theme forms such as contact and newsletter, edit the theme code in Online Store, Themes, Edit code, and add the disable-on-submit behaviour to the form script.
Leave payment to Shopify
Shopify checkout handles its own order creation. If you see duplicate orders, check any custom app or upsell script that re-submits the cart.
Limit the conversion tag
In the tag's Advanced Settings, set Tag firing options to Once per event. Use a trigger on the success event, not on the click.
Add a once-per-page check
If the success event can repeat, use a variable that records a fired flag and block the tag when it is set.
Use the wait text
In the form block's submit button settings, fill in the Please wait text. Webflow disables the button while sending.
Check custom code
If you added custom submit code in the page settings, make sure it does not send a second request.
Check form and survey settings
Open the form builder and review submit button and redirect behaviour. Use a redirect or thank-you message so visitors see a clear result.
Handle duplicates in contacts
GoHighLevel's contact settings can allow or block duplicates by email or phone. Review that setting so repeats update the same contact.
Set a clear success state
In Wix Forms, choose a thank-you message or redirect so visitors know the send worked.
Add Velo code if needed
If you use Velo, disable the button in the onClick handler before calling your save or send function.
Set the form's success message
In the form block's Storage or Advanced settings, set a message or redirect so people do not click again.
Inject a script
On plans that allow code injection, add the disable-on-submit script in the page header or footer injection area.
Apply all three layers
Disable the button, use an in-memory flag, and send an idempotency key. On the server, store keys and return the original result for repeats.
Use payment provider keys
If you use Stripe, pass an idempotency key when creating charges or payment intents so a retry cannot create a second one.
Before
- Button stays active after click
- No loading state
- Every request creates a new record
- Conversion tag fires on each click
After
- Button disables and shows Sending
- Repeat events ignored
- One-time key rejects copies
- Conversion tag fires once on success
How to confirm it's fixed
- Double-click submit on a test form and see only one record created
- Press Enter then click submit and see only one POST request in the Network tab
- Run the test with Slow 4G throttling
- Refresh the thank-you page and confirm no second record or conversion appears
- Check GA4 DebugView or Tag Assistant for a single conversion event
- Confirm the button re-enables if the request fails
How to prevent it happening again
Form plugins, themes and checkout scripts get updated, and a change can remove the protection. Put double-submit on your release checklist, and review your CRM for repeated emails each month.
How FunnelGuard handles this
FunnelGuard does not check for double-submit today. It is a possible future check, and there is no double-submit test in the product now.
What FunnelGuard does do is run your real journeys on a schedule, such as lead forms and checkouts, from the EU or the US. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a form breaks, a tag stops firing or a lead never arrives, you get one alert with a screenshot and a likely cause. That helps you spot a broken submit, but it will not tell you that one click made two records.
To watch for duplicates, use the manual checks above, a duplicate-email report in your CRM, and your browser's Network tab or Tag Assistant. You can start with the Free plan (1 site, 2 journeys, daily checks, no card) to keep an eye on the form itself.
Questions people ask
Why is my form creating duplicate leads?
Most often the visitor clicked submit twice because the page gave no sign that the first click worked. Slow servers, missing loading states and Enter-plus-click make it worse. Disable the button on submit and de-duplicate on the server.
How do I stop users from submitting a form twice?
Disable the submit button and show a Sending label as soon as the form is submitted. Add a flag in your code that ignores repeat submit events, and send a one-time key so the server rejects copies.
Why am I getting duplicate orders on my checkout?
Usually a double click on the pay button, a retry after a timeout, or a custom script that re-submits the cart. Use your payment provider's idempotency key so a repeated request cannot create a second charge.
Does a double-submit affect my Google Ads or Meta conversions?
Yes, if the conversion tag fires on each submit it counts two conversions for one person. That inflates your numbers and can mislead automated bidding. Fire the tag once, on the confirmation page or success event.
What is an idempotency key?
It is a unique ID sent with a request so the server can recognise a repeat. If the same key arrives twice, the server returns the first result instead of creating a second record or charge.
How can I find duplicate leads already in my CRM?
Export your contacts and sort by email and creation time. Entries with the same email within seconds of each other are likely double-submits. Many CRMs also have a merge or duplicate tool.
Does FunnelGuard detect double-submit?
No. FunnelGuard does not check for double-submit yet, though it is a possible future check. It does run your real forms and checkouts on a schedule and checks steps, tracking hits and lead delivery.
Related issues
- PRF-120JS error only after clicking submit breaks the formFix guide
- PRF-134Button does nothing on click (dead click)Fix guide
- PRF-135Form submits but shows no feedback (silent failure)Fix guide
- PRF-137Error 'Something went wrong' shown after submitFix guide
- PRF-117Console error on a funnel stepFix guide
- PRF-116Uncaught JavaScript exception on page loadFix guide