Skip to main content
Mani_kumar_
Community Advisor
Community Advisor
Mar 14, 2016 3:21 PM UTC
Solved

Selection Dropdown values dynamically.

Hi All,

We have requirement where we need configure the pagepath in dialog and display list of component names in selection dropdown.

attaching screenshot.

Thanks,

Mani Kumar K

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mani_kumar_
Mani_kumar_Accepted solution
Community Advisor
Mar 15, 2016 1:46 PM UTC

Hi All,

Got the solution please find below code snippet

function(){ 
var dialog = this.findParentByType('dialog');
var selectBox = dialog.findByType('selection')[0];
        $.getJSON('/libs/dropdown?Path=' + this.value, 
            function(jsonData){
                        selectBox.setOptions(jsonData);
                        });
 }

11 replies

vidyab9364493
Jan 23, 2019 12:00 PM UTC

Hi Mani,

Same doesn't seem to work for 2 dropdowns, any idea how to make it work for dynamic dropdowns

Regards,

Vidya AV

Translate