The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Return Submission ID after Submit - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Return Submission ID after Submit (/showthread.php?tid=890) |
Return Submission ID after Submit - typer139 - Oct 19th, 2010 Hey Community.. I've got a fairly complicated multi-form page in development and am using Ajax to submit the forms (currently not through API, but probably will be by the time I'm done) one by one in the background. Rather than generating a random number to associate all the forms on that page, I thought I'd just collect each of the Submission ID's of each form after I submit them. I'd like to submit 4 of the forms, return their Submission ID's, and put those ID"s in a 5th form and then submit it... My questions is, is there a way I can, instead of returning a "Thank You" page, return the unique Submission ID of each form? (XML formatted or whatever) Any ideas would be much appreciated.. Rich RE: Return Submission ID after Submit - Ben - Nov 18th, 2010 Hi Rich, I'm so sorry I missed your post! The truth is, there's no terribly good way of doing this right now. The API can handle adding a single form submission - and afterwards, extract the submission ID from sessions - but it's awfully kludgy for what you're trying to do. It should be as simple as a single function that is passed the submission data, form ID and returns the submission ID. I'm going to be working on updating the API pretty soon (pre-2.0.5 release). I'll be sure to include a function for this. Sorry I couldn't be more help in the meantime! - Ben |