Feb 12th, 2010, 10:40 PM
Hi Marcel,
No, I think I understand!
So is your form an API form or a direct form? If it's a direct form and you're getting duplicate entries that means that the user has clicked back in their browser and clicked "OK" to the popup that says "are you sure you want to resubmit the form?" (or whatever).
If it's the API then yes, it will always make a new empty, unfinalized record in the database. But this isn't so bad. What you can do is just clean out the dud data using this function ft_api_delete_unfinalized_submissions. See:
http://docs.formtools.org/api/?page=ft_a...ubmissions
You should be able to just add that line to the top of your API form and it will only delete old dud data.
Let me know how it goes!
- Ben
No, I think I understand!
So is your form an API form or a direct form? If it's a direct form and you're getting duplicate entries that means that the user has clicked back in their browser and clicked "OK" to the popup that says "are you sure you want to resubmit the form?" (or whatever).
If it's the API then yes, it will always make a new empty, unfinalized record in the database. But this isn't so bad. What you can do is just clean out the dud data using this function ft_api_delete_unfinalized_submissions. See:
http://docs.formtools.org/api/?page=ft_a...ubmissions
You should be able to just add that line to the top of your API form and it will only delete old dud data.
Let me know how it goes!
- Ben