The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Data recap after submission [on thank you page] - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Data recap after submission [on thank you page] (/showthread.php?tid=454) |
Data recap after submission [on thank you page] - vizzaroo - Jan 25th, 2010 Hi Ben and Co. Just got to say, what a wonderful web application this is. I'm an avid fan and just want to applaud you first of all for the time and effort you put into it. I just have a quick question. When the user submits a 'submission' and it redirects to a thank you page, I was wondering, is there a way to display the user's entered data after submission on the 'Thank you' page. i.e a recap of what they have submitted. Any advise or direction would be greatly appreciated. Cheers vizz. RE: Data recap after submission [on thank you page] - martin_undefined - Jan 25th, 2010 (Jan 25th, 2010, 12:03 PM)vizzaroo Wrote: Hi Ben and Co. For what it's worth, I'd look at the following ideas: If you want to display the data after submission then you need to bear in mind that the data (session?) will be cleared at the 'thank you' stage. Maybe, you could temporarily write the data somewhere, before bringing it back - post-'thank you'. I only suggest this as I am looking at a temporary way of remembering some user details. Alternatively - maybe you could adapt the submission module so that it does this. Final thought - the validation routine, does, I think do something similar by repopulating fields, so that might give you some clues. Hope some of that helps. Martin RE: Data recap after submission [on thank you page] - Ben - Jan 30th, 2010 Hey vizzaroo, Thanks for the kind words! I really hope it works out for your project. Yeah - Martin's quite right about the sessions being emptied on the "thankyou" page, but since that's done at the very top of the page, you can do what he suggests fairly easily. You could just grab the unique submission ID of the form prior to the ft_api_clear_form_sessions() function call, so you'd have it available later on in the page. You could then call the ft_api_show_submission() function in your page at the appropriate spot. The form ID & Export Manager ids would all be hardcoded. I haven't actually confirmed this would work, but I don't see why not... All the best, - Ben |