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
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
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
Selectively Use A Drop Down List - 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: Selectively Use A Drop Down List (/showthread.php?tid=4890)



Selectively Use A Drop Down List - wychegnome - Dec 14th, 2014

Is it possible to selectively use a drop down list based on the entry made in a different field?

To illustrate what I have in mind and would wish to do:

Field 1 is populated by an entry selected from a drop down list giving a choice between 'door', 'window' and 'garden'.

Field 2 is a detail relating to the content in Field 1 and is best filled by using a drop down list of choices. BUT, the content of the drop down list needs to be tailored relevant to the intial choice selected in Field 1 as the choices for door, window and garden are different.
For 'door' in Field 1 the multiple choices might be 'front', 'back', 'patio';
For 'window' in Field 1 the multiple choices might be 'casement', 'fixed', 'hinged';
For 'garden' in Field 1 the multiple choices might be 'lawn', 'concrete', 'hanging'.

Could the experts please advise.


RE: Selectively Use A Drop Down List - alexh - Dec 14th, 2014

It is possible with an external form but not an internal form.

Check out this tutorial to get you started.

http://css-tricks.com/dynamic-dropdowns/


RE: Selectively Use A Drop Down List - wychegnome - Dec 14th, 2014

I rather thought I'd have to use external forms which, for other reasons, I want to avoid.

Thank you for responding Alex.

John


RE: Selectively Use A Drop Down List - alexh - Dec 14th, 2014

Let me know if you end up doing it and need any direction on making it work. I just created a similar form on a project of mine, but it's of course an external form.

Alex


RE: Selectively Use A Drop Down List - sousa.mps@gmail.com - Dec 30th, 2014

(Dec 14th, 2014, 11:05 AM)alexh Wrote: Let me know if you end up doing it and need any direction on making it work. I just created a similar form on a project of mine, but it's of course an external form.

Alex

Hi alexh, can you tell me how, please ? And how to do it, i mean all the proccess, cause already give it a try but gave always errors....of many kind.

Thanks in advance.

Marco