Hi,
I have been working for days on this form using Adobe Livecycle 9 ES2 and need some help. I am new to LiveCycle and JavaScript, but as you'll see, I've learned a lot .
I have a repeatable subform (GoalSheet) that totals values based on a dropdown:
var len = form1.GoalSheet.Table6._Others.count;
var sum = 0.0;
this.rawValue=0;
if (form1.GoalSheet.Table6.First.Funding1.rawValue==1)
{
sum += form1.GoalSheet.Table6.First.Cost.rawValue;
}
for (var i = 0; i < len; i++){
if (form1.GoalSheet.Table6.resolveNode("Others[" + i + "]").fsource.rawValue==1) {
sum += form1.GoalSheet.Table6.resolveNode("Others[" + i + "]").Cost2.rawValue;
}
}
this.rawValue = sum;
This works beautifully. However, when the user creates a second instance of GoalSheet, it doesn't work.
Any suggestions?
A link to the form is here: https://www.dropbox.com/s/94t48cw2ywcxpcq/4-20%20Draft_total_formcalc_ pagination_safetynet%20v126.pdf
Thanks for any and all help!
Michael