Dropdowns conditions

ieraora 18 Mar, 2020
Hello, I ask for a way to solution:

I've correcly configure these dropdown. Now SOTTOGALLERIA dropdown view only the subgalleries of GALLERIA

Dropdowns conditions image 1

I would like add a "conditions": if GALLERIA = NONE, in SOTTOGALLERIA Dropdown I would see ALL subgallery, ELSE I would see the subgallery of GALLERIA selected.

Where I work to reach the goal?

If you need I add another screeens.

Thank You.
healyhatman 18 Mar, 2020
Have a look at the dynamic dropdown demo.
ieraora 19 Mar, 2020
I saw demo, can I do also with CC6?
ieraora 25 Mar, 2020
Sorry, but the DYNAMIC action in CF6 is a SWITCH in CC6?
The list of my subgallery dropdown is a READ DATA, what I take in OPTIONS of dropdown?

Dropdowns conditions image 2


Dropdowns conditions image 3

Dropdowns conditions image 4



Dropdowns conditions image 5





Dropdowns conditions image 6


Dropdowns conditions image 7


Dropdowns conditions image 8
ieraora 30 Mar, 2020
Any suggestion? Thanks
ieraora 01 Apr, 2020
Ok, I've correct thanks this tread https://www.chronoengine.com/forums/posts/t106454/cc6-dynamic-dropdown-for-filtering-table?keywords=dynamic%20dropdown

I' ask if you can help me to below code:
switch($this->data('gallery_sel')){
case '':
$options = {var:dropdown_search_subgallery_all};
break;
default:
$options = ['N/A' => 'Please select one'];
}
return $options;
What I insert instead the variable?
I tried this without success
$this->set('dropdown_search_subgallery_all', $this->get('dropdown_search_subgallery_all'));
healyhatman 01 Apr, 2020
Can't use shortcodes in PHP. Use the switch, just make sure the left part ("possible values") are actually correct. "Other than None" would be an asterix, like this *
ieraora 01 Apr, 2020
Is blank, where I wrong?


Dropdowns conditions image 9
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger