How to prevent form re submission when page is refreshed?


(Ravi) #1

Hi All,

I have created the blog/forum page using the asset builder page. and I use this forum on the different landing page. Now the problem id, when you refresh the form it submitting the form again. How to stop this?


(Tim Davison) #2

What I’ve seen done before (but I’ve never done it) is create a normal Std Page ‘Thankyou’ page asset separate to the form (or just under it, to keep the IA clean). Then create a redirect asset, point it to the Std Page you created, and nest the redirect into the Thankyou bodycopy of the form. This will push the user to the Std Page you created whenever the form submission is successful.

Interestingly, the reason I’ve seen this done was to be able to glean Google stats on successful form submissions, rather than preventing resubmissions, but I think would have the same effect for you.