You'll need to create a custom database table to hold your options. Example as follows.
Structure
id | value | label | group
You then for example could have the following.
Type: Query Drop Down (Single Select)
Query:
Code:
SELECT `value`, `label`
FROM `#__my_options_table`
WHERE `group` = '[cb:if cb_field1="A1" and cb_field2="B1"]1[cb:else]2[/cb:else][/cb:if]'
Value Column: value
Label Column: label
The above for example would show all options with a group value of 1 if cb_field1 is set to A1 and cb_field2 is set to B1 otherwise it shows all options with a group value of 2. This can of course all be adjusted however you like including how you store these options.
Next to have this refresh when changing the value of cb_field1 and cb_field2 ensure CB Core Fields Ajax is installed and under Integrations > CB Core Fields Ajax set Update On to cb_field1 and cb_field2. That should be all you'll need to do.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.