Javascript 'if... else' script for field in fillable pdf forms Acrobat DC
I am hoping somone might be able to help with a javascript calculation for an order form.
I would like my script checking because it doesn't work!
I have a 2 fields : a Subtotal field, a Freight Charge field.
I have written a script for my freight charge field where if the subtotal field amount is less than 360.00 then the freight charge must be 9.00. If more than 360.00 then the freight charge should be 0.00
var "SUBTOTAL" = Number (this.getField ("SUBTOTAL").value);
if ("SUBTOTAL" < 360.00)
{
event.value = 9.00
} else {
event.value = 0.00
}
Also, is there a way of making the 9.00 the visible default value until the Subtotal reaches 360 ??
If anyone can help then huge thanks in advance!
