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!
Hi, the layer name I want to show is: “Cost Center 1”, but I don’t know what code to use to make it visible when A is selected.
I would also like code to indicate in the Default state to turn off certain layers, is that possible too? I’m just getting familiar with JS in Acrobat, appreciate your help!