Answered
Hello,
I have been trying to add a group of fields IF there is a specific value in another group of fields. I have the following code that does work as expected:
var gSum = 0;
{if ((xfa.resolveNode("xfa.form.form1.#subform[0].FuelType[0]")).rawValue == "Gasoline")
gSum = gSum + ((xfa.resolveNode("xfa.form.form1.#subform[0].BilledGallons[0]"))).rawValue
}
event.value = gSum;
My problem is there are 24 occurrences of the "FuelType" and "BilledGallons" fields. How can I create a loop that will check them? Any help is VERY MUCH appreciated.
Try...
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs