Browser Back button and Multi Page

Rybe 06 Aug, 2009
Hi everybody...

As this is my first post to this forum I would like say hello to the supporters. Especially to GreyHead and congratulations to you new position as official Admin.

But now to my problem. I am trying to set up a Multi Page Order Form, so I set up my Mother form and my two daughter forms according to GreyHeads tutorial. Everything went fine so far. Then I tried the confirmation page plugin but here things didn't work as smooth as before. So I thought why not just create another form that displays the info from $posted with just a back and submit button on it.

Everything worked out fine as I had hoped. Then I tested around a bit with stepping forward an back between my forms to see if I republished my inputfiled correctly. By accident I pressed the browser back button instead of my own form navigation elements. I got a message that my data had to be reposted and I thought "hey no problem i am just going to step 2 of 3" only the info I entered in the second form might get lost. But this was not the case. What happens the formcontent is mailed an i get forwarded to my thank you page...😟
So if my Users hit the back button when they see that they entered something wrong the mail ist being sent, and I can't tell the difference. A confirmation checkbox on my confirmation page could help me tell the difference between un/confirmed messages, but I'd prefer a solution that sends the user to the form before.

I hope that anyone has got an idea how this issue can be solved.

Regards Rybe
GreyHead 07 Aug, 2009
Hi Rybe,

I really don't know. It's tricky - probably the best bet is to add some javascript to disable the back button and then to add a back button on the form.

Fredrik did recently post some code to enable browser caching with ChronoForms but I suspect that wouldn't help here as there is quite a lot of processing going on between page displays to make sure that the data is kept.

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