Checkbox calculation issues in Acrobat
Been scouring the forum to find a solution but been unable to replicate the solution on my own (see graphic). I'm trying to populate usdcost with usmsrp and an option to apply a 50% or 40% discount. Even trying one checkbox yielded no result for me. I trued adding the following code into the usdcost field:
var m40 = even.target;
var usmsrp = this.getField(“usmsrp”).value;
if (m40.value !== "Off") {
this.getField(“usdcost”).value = usmsrp - (usmsrp * .40);
} else {
this.getField(“usdcost”).value = 0;
}
Is there a way that I can add both checkboxes? Thank you in advance.

