Change layer visibility from hidden to visible but doesn't print

I have a pdf form that is programmed (in Adobe Acrobat DC) with a document level javascript that allows for layers to be visible or hidden based on the user input. I would like to add an additional layer with action buttons that are originally hidden but when the user inputs the given selection the layer become visible...but it doesn't ultimately print. Is this possible?


Tracy Young


2 Answers

Voted Best Answer

In the layers panel properties for the layer, manually set the visibility to "visible when on" and set printing to "Never", then turn the state on or off with your script:

enter image description here

________________________________________________________________________________________________________________

David Dagley, CFP®
Developer at

www.PDFAutomationStation.com

IMAGE ALT TEXT IMAGE ALT TEXT IMAGE ALT TEXT

_________________________________________________________________________________________________________________


By David Dagley   

So I asked this question wrong (let me know if I need to resubmit with it asked properly). These are action buttons that are not actually on their own layer (since buttons don't live on layers). I have a group of action buttons (Save, Reset Form, etc.) that I have all saved as a group (GROUP1). Currently I have an if statement:

if(event.value =="Green") {
this.getField("GROUP1.").display = display.visible

I want these buttons to be visible for the user to use when they select the value Green, but I don't want them to print. Any suggestions?


Tracy Young   


Please specify a reason: