FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
keeping form data on error validation
#7
(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(); ?>
Reply


Messages In This Thread
keeping form data on error validation - by robotech - Oct 9th, 2009, 3:11 PM
RE: keeping for data on error validation - by msaz87 - Oct 9th, 2009, 11:12 PM
RE: keeping for data on error validation - by robotech - Oct 10th, 2009, 3:08 PM
RE: keeping form data on error validation - by msaz87 - Oct 10th, 2009, 4:50 PM
RE: keeping form data on error validation - by msaz87 - Mar 31st, 2012, 7:29 PM
RE: keeping form data on error validation - by msaz87 - Jul 23rd, 2012, 1:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)