Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Toggle printing to all items with password?

Avatar

Level 2

I have a form with subforms and parts that are set to only show up on screen.   I would like certain people to have the ability to print the entire PDF without Acrobat.  Can I have a field that toggles all the objects toggle to printable based on a password?

Thanks.

Tom

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Tom,

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

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 response method in action here: http://assure.ly/yDtfsM and the presence/relevant method here: http://assure.ly/h7whb8.

Good luck,

Niall

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Tom,

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

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 response method in action here: http://assure.ly/yDtfsM and the presence/relevant method here: http://assure.ly/h7whb8.

Good luck,

Niall