The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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