Jul 4th, 2010, 10:37 AM
Hi congkai,
Sorry for not being around! I've been scrambling to get another script into beta and had to drop the ball on this project for a while.
Regarding your problem, what version of the API are you using? I thought I solved this by default in 1.0.0, but apparently not! If you're running an older version, I'd suggest upgrading.
Alternatively, you can bypass the issue by explicitly telling the ft_api_process_form functions to allow it to update submissions that are already finalized (this is the default setting in 1.0.0).
So on any page that calls that function, pass a new parameter like so:
However, in your case, since the person can submit the form multiple times you want to make sure that each time they're creating a NEW submission. As such, on the final page of your form make sure you're calling the ft_api_clear_form_sessions() function:
http://docs.formtools.org/api/?page=ft_a...m_sessions
That will ensure that when they return to the first page they'll be putting through a brand new submission.
Hope this helps...!
- Ben
Sorry for not being around! I've been scrambling to get another script into beta and had to drop the ball on this project for a while.
Regarding your problem, what version of the API are you using? I thought I solved this by default in 1.0.0, but apparently not! If you're running an older version, I'd suggest upgrading.
Alternatively, you can bypass the issue by explicitly telling the ft_api_process_form functions to allow it to update submissions that are already finalized (this is the default setting in 1.0.0).
So on any page that calls that function, pass a new parameter like so:
PHP Code:
$params = array(
...
"may_update_finalized_submissions" => true
...
);
ft_api_process_form($params);
However, in your case, since the person can submit the form multiple times you want to make sure that each time they're creating a NEW submission. As such, on the final page of your form make sure you're calling the ft_api_clear_form_sessions() function:
http://docs.formtools.org/api/?page=ft_a...m_sessions
That will ensure that when they return to the first page they'll be putting through a brand new submission.
Hope this helps...!
- Ben