Expand my Community achievements bar.

Can a drop down trigger the next drop down

Avatar

Level 3

Can a drop down trigger the next drop down based on the items list in the 2nd DDL. I have done this differently before using the example below.

DropDownList2.clearItems();

var sNewSel = this.boundItem(xfa.event.newText);

switch (sNewSel)

{

  case "Aetna":

  DropDownList2.addItem("MCOA 1750");

          DropDownList2.addItem("MCOA 2750");

          DropDownList2.addItem("MCOA 3500");

          DropDownList2.addItem("MCOA 5000");

          DropDownList2.addItem("MCOA 3500 HD HSA");

          DropDownList2.addItem("MCOA 5500 HD HSA");

          DropDownList2.addItem("MCOA Value 2500");

          DropDownList2.addItem("MCOA Value 5000");

          DropDownList2.addItem("MCOA Value 8000");

          DropDownList2.addItem("");

This works fine in another form I've created, but what is different is instead of having the "additem" I have my list created in the "List Items" in the object palette.

I want the selection in DDL to trigger the List items in DDL 2.

Thanks.

0 Replies