The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
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 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 |