Code Help - caluculation
Hello,
I am updating a form field to be able to calculate the product of one form field by another form field, however one of the fields a statis field and the other can be editted. When I try this code in the custom calculation section, it will only caluculate the first item of 10, but nothing afterwards, and any changes are not updated accordingly. I am at my wit's end and have tried all I can think of with no results. I put in validation instead of calculation and tried altering the code a few times to no avail. Any help would be greatly appreciated!
"4 Funds" is a dropdown box and "Annual Income" is a static, calculated field that cannot be editted.
var Funds = this.getField("4 Funds").value;
var Income = this.getField("Annual Income").value;
if (Funds == 10)
event.value == Income*8.9;
else if(Funds == 15)
event.value == Income*12.4;
else if(Funds == 20)
event.value == Income*15.4;
else if(Funds == 25)
event.value == Income*18.1;
else if(Funds == 30)
event.value == Income*20.4;
else if(Funds == 35)
event.value == Income*22.4;
else if(Funds == 40)
event.value == Income*24.1;
else if(Funds == 45)
event.value == Income*25.6;
else if(Funds == 50)
event.value == Income*26.9;
else if(Funds == 55)
event.value == Income*28.1;
else if(Funds == 60)
event.value == Income*29.0;
