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 "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
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
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)); 
gives me
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)); 
Only gives me
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