Enable/disable printing on all the elements containing the password?

I have a form with subforms and parts that are set to only appear on the screen.   I want some people to be able to print the complete PDF without Acrobat.  Can I have a field that toggles all the objects to printable toggle based on a password?

Thank you.

Tom

Hi Tom,

Yes, you should be able to achiew this. If you have a checkbox, you have a checkbox with a response to the click event method:

var nResponse = xfa.host.response("Please enter your password to print the whole form", "Print settings", "", 1); 

if (this.rawValue == 1 && nResponse == "1234") {
     Subform1.relevant = "";
     Subform1.presence = "visible";
}
else {
     Subform1.presence = "visible";
     Subform1.relevant = "-print";
}

You can see the method of response in action here: http://assure.ly/yDtfsM and the method of presence / relevant here: http://assure.ly/h7whb8.

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for