Avatar

Level 10

Hi Ace,

You could just call another function on postPrint:

restoreEmptyLines(elementName){

     var vObject = xfa.resolveNode(elementName);

     vObject.presence = 'visible';

     vObject.border.edge.color.value = "0,0,0";

}

Since you are already using two objects for the combed field (presumably with a global binding), then I would set the object with the combs to "Visible - screen only" and the object without the combs to "Visible - print only" (in the Object > Field tab presence dropdown). This would do away with this script.

Hope that helps,

Niall