Expand my Community achievements bar.

-print not working

Avatar

Level 2

When a certain condition occurs, I want the contents of a textbox to not print.  I have the following code, and it is not working.  Any ideas?

 

xfa.resolveNode("FormWarningSubform.formWarn").relevant=   "-print";

Instead, of not printing it shows "-print" in the textbox.

Thank you for any assistance.

1 Reply

Avatar

Level 7

I've been using txtTest.presence = "-print"; instead of relevant. It works for me.

In my form, I created a "hint" for a field. If the user leaves the field and it's empty, then I make the hint visible and keep it from printing with this code.

if (this.isNull){

txtExample.presence = "visible";

txtExample.presence = "-print";

}