Forums

Double Submit on Refresh of "Thank You Message"

melvins138 10 Oct, 2013
I have a form, once submitted, a unique ID is created, form saves to a DB, emails form user, and a thank you message shows. On the thank you message page, it shows the unique ID and some of the input fields.

Everything works great!

One small glitch is that if the user refreshes the thank you message, a new unique ID is created and a new record is saved to the database.

How can I stop that from happening?

Thanks,
Melvins138
GreyHead 11 Oct, 2013
Hi melvins138,

Is this a multi-page form with data saved to the session? If so then you should clear the session with a final Session to Data action.

That may solve it, otherwise I can only suggest that you add some kind of check to the On Submit event to see if the form has already been submitted.

Bob
melvins138 28 Oct, 2013
Thanks Bob! That did the trick.

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