The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Combining 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: Combining Fields (/showthread.php?tid=1407) |
Combining Fields - procreative - Jun 25th, 2011 Found this tech note: http://modules.formtools.org/submission_pre_parser/?page=combining_fields_example I want to combine First Name and Last Name fields into one field for use elsewhere I tried this and it did not work: if ( (isset($_POST["first_name"]) && !empty($_POST["first_name"])) && (isset($_POST["last_name"]) && !empty($_POST["last_name"])) ) { $_POST["name"] = "{$_POST["first_name"]}_{$_POST["last_name"]}"; } Does this work for creating a merged field if I am using FormTools internal forms? RE: Combining Fields - Ben - Jun 26th, 2011 Excellent. This is a bug with 2.1 compatibility: I'll release an update to the module shortly. Thanks for letting me know! - Ben |