cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic values on 2nd DropDown

former_member1193316
Participant
0 Kudos

Hi,

I created two dropdowns in my interactive pdf. I binded with nodes tow..two dropdown boxes are getting values in interactive form.

But here I need to display the values in the second dropdown on the base of selected value from first dropdown.

How can i achive this. Here I m facing crucial problem to solve this.

Kindly let me know the javascript code to solve this prob.

Regards,

Venkat

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Populate drop-down from a second drop-down:

Otto

former_member1193316
Participant
0 Kudos

Tqu,

I used below code to solve my problm

MASTER.EnumDropDownList3.clearItems();

var dd1 = MASTER.EnumDropDownList1.rawValue;

for(var i = 0; i < MASTER.EnumDropDownList2.items.nodes.length;i++)

{

var dd2 = MASTER.EnumDropDownList2.getDisplayItem(i).substring(3);

if (dd1 == dd2)

MASTER.EnumDropDownList3.addItem(MASTER.EnumDropDownList2.getDisplayItem(i));

}

Answers (0)