I am trying to add up the sum of a (potentially) repeating subform in LiveCycle Designer. My javasript is as follows:
form1.P1.Desig.Remain::calculate - (JavaScript, client)
var fields = xfa.resolveNodes("desInfo[*].AAmount");
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
total = total + fields.item(i).rawValue;
}
this.rawValue = total;
***desInfo = name of subform
***AAMount = number I want totalled
If anyone could help me with this I would greatly appreciate it
Nick