Thursday, 10 October 2013

Hiding a field in PDF form - Interactive Adobeforms

This is an example to hide a text field in the PDF form when a check box is checked.



Choose the check box and select the event FORMREADY and language as JAVA SCRIPT.
This event is for making the check box invisible when the user opens the form.

if ( this.rawValue == 0)  ------->checkbox value

{

xfa.form.data.Page1.TextField1.presence = "hidden";   



}

"here [ data.Page1.TextField1---->path of the textfield from root node]

Now choose the event CLICK for making the text field visible when the user selects the check box.


if (this.rawValue == 0)

{

xfa.form.data.Page1.TextField1.presence = "hidden";

}

else

{

xfa.form.data.Page1.TextField1.presence = "visible";

}

The output looks like this.






No comments:

Post a Comment

Note: only a member of this blog may post a comment.