2 Replies Latest reply on Aug 24, 2015 10:41 AM by kathrync47542786

    How to add layer visibility in Javascript to drop-down selection?

    kathrync47542786

      Hi,

       

      I'm using Acrobat CC and I am trying to figure out how to add layer visibility to an existing custom script. I have a dropdown with 3 items in the list. The "A" in the code below represents the first selection from the list, I'll add B and C after I get the first section sorted. The "Default" section is the original state of the document when no selections have been made. When the user selects the first option in the drop down, I would like to hide/display certain form fields AND I'd also like to show/hide corresponding layers in the document. The existing code is below, and the layer I would like to show when "A" is selected is called: Cost Center Choice 1. Any help/advise is greatly appreciated!

       

      Kathryn

      Screen Shot 2015-08-24 at 12.36.25 PM.png