Avatar

Level 1

I'm trying to accomplish the same task but with no success.

I'm using Acrobat Pro X

I have a dropdown called "Assay" which has three entries that users can pick (Assay 1, Assay 2, Assay 3).

I have a second drowndown called "Description" who's contents should vary based on what's choosen in the first dropdown.

I used the code from the last post and modified it but it does not seem to work, the Description dropdown is not getting updated. I added the code to the Dropdown Properties menu using the trigger Mouse Up (I also tried Mouse Exit with no luck).

My code starts here:

Description.clearItems();

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

switch (sNewSel)

{

  case "Assay 1":

    Description.addItem("BCBS")

    Description.addItem("Aetna")

    Description.addItem("Cigna")

    Description.addItem("UHC")

    break;

  case "Assay 2":

    Description.addItem("BCBS")

    Description.addItem("Aetna")

    Description.addItem("Cigna")

    Description.addItem("UHC")

    break;

  case "Assay 3":

    Description.addItem("BCBS")

    Description.addItem("Aetna")

    Description.addItem("Cigna")

    Description.addItem("UHC")

    break;

  default:

    break;

}