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
How to display multiple fields from table in dropdown options? - 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: How to display multiple fields from table in dropdown options? (/showthread.php?tid=2207)



How to display multiple fields from table in dropdown options? - jsherk - Sep 22nd, 2012

Can this be done (details below) in free version of form tools (2.2.5) or would I need the Custom Fields module to accomplish this or would it need to be done as a Custom Module?

DETAILS:
When choosing a dropdown from another table, it let's you pick the field you want to display in the dropdown. Is it possible to have a combination of multiple fields display in the dropdown for selection?

Example: given the table below, can I have the selections in the dropdown show as Name+Version, so the selection list would show
Angry Birds 1.0
Super Maze 3D 2.0
Space Shooter 1.5

Code:
ID   Name                Version
1    Angry Birds         1.0
2    Super Maze 3D       2.0
3    Space Shooter       1.5

Thanks

EDIT: I read thru the entire documentation on Custom Fields module and played around with the module on the demo site, but was not able to accomplish what I am trying to do. It could just be that I do not understand the Custom Fields module well enough, but would like to know if a custom module is the only way to accomplish what I want to do!


RE: How to display multiple fields from table in dropdown options? - mikew12345 - Sep 22nd, 2012

Is this the only way to make a dynamic listbox? Is there any way to base a listbox on a query? Then we could pull any fields we want out of the DB and format it on the fly.
Mike