Hi Ben,
I am finally getting back to fixing a few bothersome problems with this form. You may not remember this but this form allows a user to fill in all or just some of the fields (other than required fields) and come back later to complete it. The one standout problem I am having is that is the user Saves before he completes the form, I would think that the "next_page" => "thanks.php", should kick in, shouldn't it? However, it is not. Any idea why not? Here is the code I have at this point:
If the user Saves (submits) the form before it is complete, the thanks.php page should come up, but it does not. Could it be that the problem is that this is not a true multi-page form but rather, a single page in which we show or hide elements with jQuery?
Cheers,
Dave
I am finally getting back to fixing a few bothersome problems with this form. You may not remember this but this form allows a user to fill in all or just some of the fields (other than required fields) and come back later to complete it. The one standout problem I am having is that is the user Saves before he completes the form, I would think that the "next_page" => "thanks.php", should kick in, shouldn't it? However, it is not. Any idea why not? Here is the code I have at this point:
Code:
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/support/formtools/global/api/api.php");
ft_api_start_sessions();
$fields = isset($_SESSION["form_tools_form_data"]) ?
ft_strip_tags($_SESSION["form_tools_form_data"]) : array();
$fields = ft_api_init_form_page(1);
$params = array(
"submit_button" => "submit",
"next_page" => "thanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true,
"may_update_finalized_submissions" => true
);
ft_api_process_form($params);
?>
If the user Saves (submits) the form before it is complete, the thanks.php page should come up, but it does not. Could it be that the problem is that this is not a true multi-page form but rather, a single page in which we show or hide elements with jQuery?
Cheers,
Dave