Avatar

Level 8

Name all of the text fields you wish to merge 'TextField' (not the field performing the calculation) and use this:

myArray=[];

for (var a=0;a<TextField.all.length;a++){

if (xfa.resolveNode("TextField["+a+"]").rawValue!=null && xfa.resolveNode("TextField["+a+"]").rawValue!=""){

  myArray.push(xfa.resolveNode("TextField["+a+"]").rawValue);

  }

}

this.rawValue=myArray.join(", ");

Kyle