PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Duplicate submissions (entries) within seconds

  1. We've received several duplicate submissions (payments) on two of our forms and I cannot determine if the cause could be the user clicking Submit twice? Or some other type of error? The two forms that we've caught so far have come from https://www.santafebotanicalgarden.org/support/membership/ and a workshop that is no longer up. There are other submissions that have functioned correctly so I'm uncertain if the form can actually charge twice by clicking twice on Submit?

    Posted 12 years ago on Tuesday February 12, 2013 | Permalink
  2. This is normally due to the user clicking submit twice, or reloading the page on a mobile device or something, and having the transaction go through again.

    If the visitor clicks twice on submit, there is normally a browser dialog that asks to confirm if you want to submit the form again. But if the visitor does click submit twice and confirm any browser dialog, the submission and transaction will go through twice.

    You can use this snippet to disable the submit button after the first submission, to prevent simple errors like this: http://pastebin.com/TR1Lu7Tb

    Posted 12 years ago on Wednesday February 13, 2013 | Permalink
  3. Thanks. Our developer wants to know which page should that code be inserted into?

    Posted 12 years ago on Tuesday February 19, 2013 | Permalink
  4. This would go into your theme's functions.php file. More info on that here:

    http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    Posted 12 years ago on Tuesday February 19, 2013 | Permalink
  5. Got it to work. Thanks!

    Posted 12 years ago on Wednesday February 27, 2013 | Permalink

This topic has been resolved and has been closed to new replies.