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)
|
![]() |
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. 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 |