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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes