Avatar

Level 10

You can use the resolveNodes() method to get a nodeList of repeated objects you the can process by a for loop.

var oSubforms = Main.resolveNodes("Individual[*]");

if (oSubforms.length > 0) {

    for (var i = 0; i < oSubforms.length; i += 1) {

      var cResult = "";

      cResult += oSubforms.item(i).Applicte.AppName.FirstName.rawValue;

      cResult += " ";

      cResult += oSubforms.item(i).Applicte.AppName.LastName.rawValue;

      Signatures.resolveNode("Applicant" + (i+1) + "Signature").FullName.rawValue = cResult;

    }

}