Mar 31st, 2012, 7:29 PM
(Mar 31st, 2012, 1:18 PM)M8R-f08t5x Wrote: >Thanks you this worked like a charm keeps all the field.
Yep, it does. Even if I go through the form and the "thank you page" and try to fill out new form, the old values are still there.
This doesn't empty the values on the thank you page:
ft_api_delete_unfinalized_submissions(7, false);
$fields = ft_api_init_form_page(7);
ft_api_clear_form_sessions(7);
What is wrong?
Sounds like the sessions aren't clearing properly. I don't really use Form Tools anymore, so I can't tell you exactly what's wrong, but you could try globally unsetting sessions at the bottom of the page. This will clear all the sessions, so if you have any others active, this wouldn't be the way to go.
Try putting this at the bottom of the Thank You page:
PHP Code:
<?php session_unset(); ?>