The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
may_update_finalized_submissions PANIC - 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: may_update_finalized_submissions PANIC (/showthread.php?tid=358)



may_update_finalized_submissions PANIC - sergiozambrano - Nov 4th, 2009

After trial and error, I can say "may_update_finalized_submissions" doesn't work at all.

If the form is configured as "multiple page form", ANY form submitted will be submitted in that formtools form ID.
(e.g. form with id 1 could end up in form with id 2, depending on what you submit the last.)

If form is configured as "single page form", you get error 302 (form already finalized) when loading the second form (which has the "may_update_finalized_submissions" line)

if "may_update_finalized_submissions" is not used in a form using the same form ID than previous page, there's no way to merge info in form page 2 into the same form ID (same output listing). Error is 302 too, obviously.

Have you ever gotten to work a 2 pages form in the same formtools installation that also receives leads from other forms not in that set, and NOT misdirecting the data to other form iD?

Thanks.


It's rather MULTIPLE FORMS PANIC - sergiozambrano - Nov 6th, 2009

Third night in a row learning PHP Big Grin

I thought I fixed termporarily the forms until Ben helps us with a way to submit the first form (finalized) and accept a new form in the next page (no thankyou page), but it didn't work.

Now it's matter of (for the rush) to clear sessions in the second page, because since the "thankyou" page hasn't been reached yet, no "ft_api_clear_form_sessions();" ANY OTHER FORM submitted from the same computer than form 1 will throw a 302 error.

I need at least a way to "make up" the forms in a way that pretend to be a multiple pages form but setting them up as separate forms inside form_tools admin page.

I'll just use a redirect after a real thankyou page before the second page for now, which could fail depending on browser's security level.

Does anybody know how to successfully submit a second "optional" form into the same form ID (to add up data to an existing session) without risk to leave the page and OTHER form in the site get the session mixed up?

Or at least:
Does anybody know how to clear sessions inside the next form? (no thankyou page between page 1 and 2)