The following warnings occurred:
Warning [2] Trying to access array offset on value of type null - Line: 59 - File: inc/class_session.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_session.php 59 errorHandler->error
/global.php 54 session->init
/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 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
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
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
Updating records and resubmitting via formtools - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Updating records and resubmitting via formtools (/showthread.php?tid=3014)



Updating records and resubmitting via formtools - jgold723 - Apr 27th, 2014

Formtools 2.2.6

OK -- I know that I can add records to my database using an externam form submitting via formtools.

Question -- can I use an external form to update an existing record?

For example - I have my external form and in it a field for submission_id. If I complete that form, enter a submission_id that matches an existing record and submit it via formtools (process.php) will that update the same record in the database?

Or will something blow up?


RE: Updating records and resubmitting via formtools - alexh - Apr 27th, 2014

With the existing code, an external form cannot update an existing submission. You an update submissions on the back end if you are logged in and have access to the form, so long as that view allows the user to edit the particular fields.

Hope that helps!
Alex


RE: Updating records and resubmitting via formtools - jgold723 - Apr 27th, 2014

(Apr 27th, 2014, 7:23 AM)alexh Wrote: With the existing code, an external form cannot update an existing submission. You an update submissions on the back end if you are logged in and have access to the form, so long as that view allows the user to edit the particular fields.

Hope that helps!
Alex

Hi Alex - what if I pointed the external form to the same page that the back end uses (edit_submission.php)?

John



RE: Updating records and resubmitting via formtools - alexh - Apr 29th, 2014

John,

That won't work out of the box unfortunately. I think you'll need to do some significant work to do what you want.


RE: Updating records and resubmitting via formtools - Joe - Apr 30th, 2014

As Alex mentioned you won't be able to update a record with an external form out of the box. You might want to consider using the Submission Accounts module: http://modules.formtools.org/submission_accounts/

A user will need to log back in but will be able to update their record once they've logged in.

Hope that helps.

Cheers,

Joe