Hi
Having driven myself slightly insane, I thought I'd ask for help.
I'm a complete novice (obviously) and have a form with a total field and a deductions field. The Total field is simply the sum of various other fields and I need to put calculated deductions in a separate field (Deductions).
I tried to do it many ways but this is the general idea:
var dedTotal = this.getField("dedTotal").value;
if (dedTotal >=60)
event.value = -45;
else if ((dedTotal >=40) && (dedTotal <60))
event.value = -30;
else if ((dedTotal >=20) && (dedTotal <40))
event.value = -15;
else
event.value = 0;
Any help to get this working is greatly appreciated.
I've also seen "event.value = 0" put at the top of the script with no "else" statement. Is one 'better' than the other and why?
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com