Avatar

Level 3

This

is how I remove empty lines on the address, I call this method on the prePrint

function

removeEmptyLines(elementName, elementValue){

     if (elementValue == " " || elementValue == "" || elementValue == null){

     xfa.resolveNode(elementName).presence

= 'hidden';

     }

  

else{

     xfa.resolveNode(elementName).border.edge.color.value

= "255,255,255";

}

For removing the combs I call this method ( I dont really remove them...but assign what is entered on the combs to another fiield_print without the combs)

function

removeComb(elementName, elementValue){

xfa.resolveNode(elementName

+ "_print").rawValue = elementValue;

xfa.resolveNode(elementName).presence

= 'hidden';

xfa.resolveNode(elementName

+ "_print").presence = 'visible';

}