Prevent duplicate form submissions

rjrinc 07 Dec, 2015
Hello,

Is there any preferred way to prevent duplicate form submissions using ChronoForms and Authorize Net plugin. I need a reliable way to make sure users for example are NOT able to refresh the browser and send the form again. I experimented with using the redirect action but then I need to create a thank you page which is not desired. But if this the simplest and most effective way to do it then I guess I can live with that. The problem with this though is that any data from the form results is not easily accessible that I'm aware of. I would like the user to be able to print the thank you page with some data from the processed transaction. I would like to know if there is any guide or tips on how to set it up in a better way. Thanks!

- Chris
GreyHead 08 Dec, 2015
Hi Chris,

The simplest solution is probably to add a Submit Limit action from the Security actions group and set it to say 300 seconds. That should prevent any immediate resubmissions. Add an Event Loop action to the pink On Fail event to re-load the form with a message.

You can show form data in the Thank You page and add a 'print' button (see the FAQS). Note that Display Message action doesn't support PHP - the Custom Code action is very similar and does.

Bob
koppie7 25 Apr, 2016
And where do I add that submit limit action and the re-load of the form?
GreyHead 26 Apr, 2016
Hi Chris,

The Submit Limit action at the start of the On Submit event.

Add a Display Message action and an Event Loop action in the pink On Fail box of the Submit Limit action.

Bob
koppie7 27 Apr, 2016
I did add it there, but nothing happens when I click for the second time on the submit button.
GreyHead 27 Apr, 2016
Hi koppie7,

What exactly do you mean by 'nothing happens'? Have you added a message to the Action - does the message show?

Bob
This topic is locked and no more replies can be posted.