Answered
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
My problem is the displaying text box stays at "$0.00" without updating the total…
If anyone could help me with this I would greatly appreciate it
Nick
It's way easier to use.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs