The use of password for show/hide forms - anyway to keep the setting "does not print?

I have a George_Johnson script that allows me to enter a password to show/hide the fields selected (keys actually).  It works perfectly, but when I enter the password and buttons appear again, setting general/Common Properties amounts to 'visible' instead of ' visible but does not print ', and the buttons appear when I print the document.  I thought I could change these lines and print buttons...

case 'password': / / your password goes here

getField("x").readonly = readonly;

getField("x").display = readonly? Display.Hidden: display.visible

App.Alert ("level 1 support is now" + readonly_desc + "d", 3);

break;

.. .to change the 3rd line to read as follows: getField("x").display = readonly? display.hidden: display.visible but does not print  (or _but_doesn't_print;)

but then I started to make syntax errors in the 4th line.  I don't know about Java, but I thought I might get lucky.  I get hot?  What is the "3" that needs to change?  Or is that I started quite wrong?

Thanks for reading,

Zac

You can't guess correctly that the value can be and expect it to work... You should consult the documentation.

In this case, what you're looking for is "display.noPrint".

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • Round back app update will remain off on Apple Watch

    I go into the app to watch on my iPhone turns off refresh app backround for certain applications, but they are all light up immediately after I leave the app shows the two watches and iPhone are updated to latest iOS

  • Error 800 b 0100 appears several times

    After trying to update the system by running the CheckSUR tool, it does nothing to improve the situation and continues to stop updates 4: 956744, 956802, 955069, 958644. Generated journal:=================================Preparation of control system

  • A person or group has taken over my computer

    A few years ago, I downloaded accidentally malware/trojan/virus through a flash update. My internet has sent almost as much as she gets slow my computer down to ridiculous.  A few years ago I enabled hidden files and found a whole bunch of very stran

  • HP Pavilion 15 n043ee - dark screen

    The screen of my hp pavilion 15 043ee N laptop is extremely low. I am unable to see anything on the screen, unless I have shine a flashlight on him, and even then, I can barely see. When I connect it to an external monitor, it works very well. I rest

  • Decryption of the .dat files

    If I lost my USB, but still had a backup stored on my computer, I would be able to buy a new SD card and extract the files?