The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
auto-select option - 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: auto-select option (/showthread.php?tid=30486)



auto-select option - egovir - Jan 12th, 2018

Hi.  I have 2 option lists, for example with colors (red, green, blue), and other one with items (dog, cat, ball).
Is there some way or alternative to do the following:
If i select item from list A {red}, it will automatically select option from B from other list as well, {dog}, etc.
Basically to make "bound options" of some sort.
?


RE: auto-select option - alexh - Jan 12th, 2018

(Jan 12th, 2018, 3:20 AM)egovir Wrote: Hi.  I have 2 option lists, for example with colors (red, green, blue), and other one with items (dog, cat, ball).
Is there some way or alternative to do the following:
If i select item from list A {red}, it will automatically select option from B from other list as well, {dog}, etc.
Basically to make "bound options" of some sort.
?

Unfortunately you can't do this with an internal form, or with form builder.  You can definitely do this with an external form with a little bit of programming.  Check out https://css-tricks.com/dynamic-dropdowns/ or google jquery dynamic dropdown. Hope that helps :-)


RE: auto-select option - egovir - Jan 13th, 2018

(Jan 12th, 2018, 8:18 PM)alexh Wrote:
(Jan 12th, 2018, 3:20 AM)egovir Wrote: Hi.  I have 2 option lists, for example with colors (red, green, blue), and other one with items (dog, cat, ball).
Is there some way or alternative to do the following:
If i select item from list A {red}, it will automatically select option from B from other list as well, {dog}, etc.
Basically to make "bound options" of some sort.
?

Unfortunately you can't do this with an internal form, or with form builder.  You can definitely do this with an external form with a little bit of programming.  Check out https://css-tricks.com/dynamic-dropdowns/ or google jquery dynamic dropdown. Hope that helps :-)

sadly, i need it for the internal form, but thank you for the reply anyway.


RE: auto-select option - alexh - Jan 13th, 2018

(Jan 13th, 2018, 3:16 AM)egovir Wrote:
(Jan 12th, 2018, 8:18 PM)alexh Wrote:
(Jan 12th, 2018, 3:20 AM)egovir Wrote: Hi.  I have 2 option lists, for example with colors (red, green, blue), and other one with items (dog, cat, ball).
Is there some way or alternative to do the following:
If i select item from list A {red}, it will automatically select option from B from other list as well, {dog}, etc.
Basically to make "bound options" of some sort.
?

Unfortunately you can't do this with an internal form, or with form builder.  You can definitely do this with an external form with a little bit of programming.  Check out https://css-tricks.com/dynamic-dropdowns/ or google jquery dynamic dropdown. Hope that helps :-)

sadly, i need it for the internal form, but thank you for the reply anyway.

Great feature request though!