The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Submission Pre-Parser: Edit submission in UI not updating field - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Submission Pre-Parser: Edit submission in UI not updating field (/showthread.php?tid=1056) |
Submission Pre-Parser: Edit submission in UI not updating field - russellfeeed - Jan 26th, 2011 Hi I have a Submission Pre-Parser rule which fires on Update of a submission via the Formtools UI. The rule *is* firing and using some print_r debug I can see the the values I've entered. also Code: $_POST[form_tools_calling_function] => ft_update_submission I need to take two of the fields and encrypt them. My code for this is working fine. How do I get these modified values back into the database? I've tried putting them into the $_POST variable using the correct keys (my field names and database names are the same) but they just refuse to update! Strangely, PHP Code: echo(print_r($_REQUEST,true)); Code: Array ( [form_id] => 6 [submission_id] => 1 [tab] => 3 [notes] => [item_no] => [status] => [mbbs_order_number] => [directdebit_sortcode] => 20-21-33 [directdebit_account] => 01234560 [imei] => [field_ids] => 336,337,338,339,349,350,351,352,353,355 [update] => UPDATE ) but PHP Code: echo(print_r($_POST,true)); Code: Array ( [form_tools_calling_function] => ft_update_submission ) I've tried assigning the new values back to both $_POST and $_REQUEST to no avail. My Edit Submission page has several tabs. Maybe this is the problem? Cheers Russell I've done some more poking.... should I (and is it valid to) call ft_update_submission($form_id, $submission_id, $infohash) to do the update? RE: Submission Pre-Parser: Edit submission in UI not updating field - russellfeeed - Nov 22nd, 2011 bump... I'm trying to do something similar again... Submission Preparser won't update the submission when I edit it. Any have any ideas? thanks in advance RE: Submission Pre-Parser: Edit submission in UI not updating field - Ben - Nov 22nd, 2011 Hey Russell, Ah! This one trips me up too - it's not at all clear, I should really include better documentation right in the module. What version of the Pre-Parser module + Core are you running? - Ben |