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 in a pdf form?

joanna_anna
Registered: Nov 13 2009
Posts: 16

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.3.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I believe Try67 pointed to the solution in your previous thread? Do not use the button show/hide action, instead, place this code in the Questionmark MouseUp event.

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

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

joanna_anna
Registered: Nov 13 2009
Posts: 16
Thank you, Thomp, for your explanation. I used the code you and Try67 have provided and all my Questionmark buttons work perfectly!

THANKS!

BTW, thanks for the links to tutorials. Very helpful!