The following warnings occurred:
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



Form Tools
Managing Data collecting fields - 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: Managing Data collecting fields (/showthread.php?tid=350)



Managing Data collecting fields - OrionWeb - Oct 30th, 2009

Hello,
The forms I have created are working just fine. Form Tools is a great product.

One question I have is: Once we have all the form fields data collecting, can we manage which one we might want turned off? The clients wants to receive the email with all the field data but now wants to only see certain fields collecting data. So if the form has 25 fields of information he wants to receive and email with 25 fields of information but now only wants 10 fields collecting data.
Can this be managed?
Thanks in advance
Bill


RE: Managing Data collecting fields - Ben - Oct 30th, 2009

Hi Bill,

Thanks for the post!

There's nothing within the core script for this, but you can add this functinonality via the Submission Pre-Parser module:
http://modules.formtools.org/submission_pre_parser/

That module lets you add your own code to "pre-parse" the form submissions before they get added to the data. It basically lets you do whatever you want to the data.

So in your case, you could create a new form rule that would ensure that certain form fields are empty. e.g. if your form fields were called field_1, field_2, field_3 and field_4, you could create a rule with this code:

PHP Code:
$_POST["field_1"] = "";
$_POST["field_2"] = "";
$_POST["field_3"] = "";
$_POST["field_4"] = ""

This would then ensure that no submissions would ever get to the database from those fields.

Hope this is clear! I'd try downloading & installing the module. Feel free to post back with any questions that pop up.

-Ben