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