# Duplicate submission from automatic javascript forms

**URL:** <https://forum.mautic.org/t/duplicate-submission-from-automatic-javascript-forms/27062>\
**Category:** General Discussion\
**Created:** [February 16, 2023, 3:43pm UTC](https://forum.mautic.org/t/duplicate-submission-from-automatic-javascript-forms/27062 "2023-02-16T15:43:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [February 16, 2023, 3:43pm UTC](https://forum.mautic.org/t/duplicate-submission-from-automatic-javascript-forms/27062/1 "2023-02-16T15:43:37Z")

</div>

We are getting lot of duplication submission from automatic javascript form. We suspect because of folks habit of double clicking on a button due to how Windows require double clicking on many of it apps it causing the same submission to be submitted twice to us.

We even added a redirect hoping that forcing them to redirect to a homepage would prevent double submission.

Is there a way to set submit button to ignore the second click and remaining clicks for next few seconds giving javascript time to redirect the visitor to homepage after they submitted the form by double clicking the button?

It’s getting annoying … There been a few rare time when I gotten 3 same submission!

---

<div class="post-metadata">

**Author:** ![sweely](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sweely/32/14465_2.png) [@sweely](https://forum.mautic.org/u/sweely)\
**Post date:** [November 6, 2023, 3:21pm UTC](https://forum.mautic.org/t/duplicate-submission-from-automatic-javascript-forms/27062/2 "2023-11-06T15:21:44Z")

</div>

I’ve got the same problem over here. Would love a solution.

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [November 6, 2023, 9:05pm UTC](https://forum.mautic.org/t/duplicate-submission-from-automatic-javascript-forms/27062/3 "2023-11-06T21:05:24Z")

</div>

the default mautic form already disable the button during submission, are you using a different form / submission method ?

---

<div class="post-metadata">

**Author:** ![sweely](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sweely/32/14465_2.png) [@sweely](https://forum.mautic.org/u/sweely)\
**Post date:** [April 14, 2024, 9:19pm UTC](https://forum.mautic.org/t/duplicate-submission-from-automatic-javascript-forms/27062/4 "2024-04-14T21:19:30Z")

</div>

I am using default Mautic form and still having the same problem.

**Successful Submit Action**  
Remain at Form

**Redirect URL/Message**  
My thank you message.

I have this implemented on a static HTML page using the automatic JS forms code.  
Just had 4-5 duplicate submissions. While Mautic handled the duplicate contacts and merged them into one thanks to email being used as a unique identifier, 4-5 emails were still sent out which was annoying.

FYI this was done on Safari on an iOS device according to contact data. Will keep an eye out for duplicate submissions like this in the future and what device they use.
