An update: I have hit upon what's hopefully a minor hack that involved modifying the API a little.
The modification is to pass the $submission_id while calling ft_api_init_form_page(.) the FIRST time, and creating a blank submission only if $submission_id is not set. If it is, I use the $submission_id directly. Seems to work so far (cross fingers!).
In ft_api_init_form_page(.)
The modification is to pass the $submission_id while calling ft_api_init_form_page(.) the FIRST time, and creating a blank submission only if $submission_id is not set. If it is, I use the $submission_id directly. Seems to work so far (cross fingers!).
In ft_api_init_form_page(.)
Code:
function ft_api_init_form_page($form_id = "", $mode = "live", $namespace = "form_tools_form", $submission_id = false)
{
// ...
case "live":
if (empty($form_id))
return $_SESSION[$namespace];
// create a blank submission only if user didn't pass the submission id, otherwise use the user's submission id
if ( ! $submission_id )
$submission_id = ft_api_create_blank_submission($form_id);
$_SESSION[$namespace]["form_tools_form_id"] = $form_id;
$_SESSION[$namespace]["form_tools_submission_id"] = $submission_id;
break;