These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to force ok button to be non-printable?

joanna_anna
Registered: Nov 13 2009
Posts: 16
Answered

Hi, guys.

I am creating a form in Acrobat 9 in which I have two fields where one calls the other.

1. Information box (OK BUTTON) - consists of some instruction users must read. Once you click on it, it disappears.
2. Question mark box - once you click on it, the Information box pops up.

My problem is that I don't want the "Information box" to be printable. Even if I set up the option "visible but doesn't print", once you "call" this box by clicking on the question mark, it changes its setting to "visible".

Could you please provide me with a solution on how to "force" this Information box to keep its "doesn't print" function? Maybe you know a javascript code for such behaviours? I am not a javascript expert... ;-(

Thanks so much! I really appreciate all your ideas.

My Product Information:
Acrobat Pro Extended 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2399
How do you make the information box visible? With a script?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

joanna_anna
Registered: Nov 13 2009
Posts: 16
This is what I did:

Button Properties > Action > Show/Hide a field (for both the Info box and the question-mark box; I just set up the opposites - "hide" for the Info box itself, "show" in the question-mark box for the Info box).Unfortunately, I don't know any javascript... ;-(

I hope you may help. Thanks!
try67
Expert
Registered: Oct 30 2008
Posts: 2399
Well, probably this built-in action causes the field to default to Visible, instead of "Visible but doesn't print". You can either replace it with a small script, or create a small script in the document's WillPrint event to set the box to "Visible but doesn't print". The syntax is as follows:

this.getField("name_of_field").display = display.noPrint;

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

joanna_anna
Registered: Nov 13 2009
Posts: 16
Try67, you are the BEST!!!

The code is working flawlessly!!! THANK YOU so much!!! I am so happy you helped me!

All the best!

joanna