I am preparing a form in Adobe Acrobat 9, and I need to perform a calculation that would require an "if-else" statement (I think!)
If the user enters a GST number (GSTNum), then I want the subtotal (TotalDues1) multiplied by the GST rate (GSTRate1). This calculation will take place in the field "Text4"
This is what I have, but it doesn't seem to be working:
var f=this.getField("GSTNum");
if (f.value<=0){event.value=0}
else{event.value=TotalDues1*GSTRate;}
I am very green to Javascript, so would appreciate any help!!
Thanks,
Tracy
If they are fields, you need to get their field vlaues.
George Kaiser