Hi.
I understand that .presence controls screen appearance and .relevant controls printing. Here's a sample from the Scripting Basics guide:
switch(xfa.event.newText) {
case 'Invisible':
Subform1.nodes.item(nCount).presence = "invisible";
break;
case 'Hidden (Exclude from Layout)':
Subform1.nodes.item(nCount).presence = "hidden";
break;
case 'Visible (but Don\'t Print)':
Subform1.nodes.item(nCount).presence = "visible";
Subform1.nodes.item(nCount).relevant = "-print";
break;
case 'Invisible (but Print Anyway)':
Subform1.nodes.item(nCount).presence = "invisible";
Subform1.nodes.item(nCount).relevant = "+print";
break;
default:
Subform1.nodes.item(nCount).presence = "visible";
break;
So the example covers Hidden, Visible (but don't print and Invisible (but print anyway).
But how does a script set an object to be visible AND print? It appears that anything like:
this.relevant="+print";
causes an object to disappear from the screen, and
this.presence="visible";
will not bring it back.
Thanks.