Buy Now
Sign in

Dropdowns conditions

ieraora , March 18 2020, 16:34
I
ieraora 135
March 18 2020, 16:34 #391669
Hello, I ask for a way to solution:
I've correcly configure these dropdown. Now SOTTOGALLERIA dropdown view only the subgalleries of GALLERIA
Annotazione_2020-03-14_175454.png
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 9
March 18 2020, 23:37 #391675
Have a look at the dynamic dropdown demo.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
I
ieraora 135
March 19 2020, 10:16 #391681
I saw demo, can I do also with CC6?
healyhatman 9
March 19 2020, 10:31 #391682
Sure
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
I
ieraora 135
March 25 2020, 16:40 #391758
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?
01.png
02.png
03.png
04.png
05.png
06.png
07.png
Attachments
01.png
01.png
(29.02 KiB)
190 Downloads/Views
02.png
02.png
(11.38 KiB)
142 Downloads/Views
02.png
02.png
(11.38 KiB)
202 Downloads/Views
03.png
03.png
(30.45 KiB)
143 Downloads/Views
03.png
03.png
(30.45 KiB)
192 Downloads/Views
04.png
04.png
(24.72 KiB)
198 Downloads/Views
05.png
05.png
(17.04 KiB)
202 Downloads/Views
I
ieraora 135
March 30 2020, 17:40 #391841
Any suggestion? Thanks
I
ieraora 135
April 01 2020, 11:15 #391869
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 9
April 01 2020, 11:45 #391870
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 *
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
I
ieraora 135
April 01 2020, 13:03 #391871
Is blank, where I wrong?
Annotazione_2020-04-01_150319.png
Attachments
Annotazione_2020-04-01_150246.png
Annotazione_2020-04-01_150246.png
(25.35 KiB)
127 Downloads/Views
Annotazione_2020-04-01_150319.png
Annotazione_2020-04-01_150319.png
(24.75 KiB)
167 Downloads/Views