Answered
Calculation resulting from checkbox selection in pdf
Hi everyone,
I'm trying to write a calculation that will do the following:
If the checkbox is checked then it will deduct 20% from the subtotal. Can you please assist?
Thank you so much!
Hi everyone,
I'm trying to write a calculation that will do the following:
If the checkbox is checked then it will deduct 20% from the subtotal. Can you please assist?
Thank you so much!
Thank you. I do also need to be able to show what the 20% off # in the field next to the checkbox line. Could you assist with this as well? Thank you.
Use this code as that field's calculation script:
var total = 0;
total+=Number(this.getField("TotalParts").valueAsString);
total+=Number(this.getField("TotalLabour").valueAsString);
total+=Number(this.getField("ShopSupplies").valueAsString);
if (this.getField("Yes").valueAsString!="Off") event.value = total*0.2;
else event.value = "0";
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.