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

-print not working


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


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";