Hi,
Hope this is the right forum. I am new to JavaScripts and I have a form that I want to sum two values from two different fields. I can't figure out what is wrong. Any help greatly appreciated. The two fields I want to sum are 303 and 313. Both are associated to other formulas and the respective formulas work fine. Thanks,
var a = this.getField("303");
var b = this.getField("313");
event.value = (a.value + b.value);
if (event.value > .01)
{
this.getField("32").fgColor=color.black
}
else
{
this.getField("32").fgColor=color.white
}
Hope this is the right forum. I am new to JavaScripts and I have a form that I want to sum two values from two different fields. I can't figure out what is wrong. Any help greatly appreciated. The two fields I want to sum are 303 and 313. Both are associated to other formulas and the respective formulas work fine. Thanks,
var a = this.getField("303");
var b = this.getField("313");
event.value = (a.value + b.value);
if (event.value > .01)
{
this.getField("32").fgColor=color.black
}
else
{
this.getField("32").fgColor=color.white
}