Copy link to clipboard
Copied
Hi, i have very limited knowledge of calculaton in adobe acrobat
i am trying to get a total in the total payment colomn.
Entry Level check box = 21.41
Level 1 check box = 26.60
the client input the monthly total hours.
i need that if they check first check box it will calclate the value of that checkbox times the number of hours and if they check box 2 it will calculate the check box value times the number hours. they can of only choose 1 checkbox
Copy link to clipboard
Copied
If they can only choose one, then you need to give them the same name.
Then the calculation script would look like this:
var chkVal = this.getField("LevelCheck").value;
if((chkVal != "Off") && !isNaN(chkVal))
event.value = this.getField("NumHours").value * Number(chkVal);
else
event.value = 0;
Copy link to clipboard
Copied
If they can only choose one, then you need to give them the same name.
Then the calculation script would look like this:
var chkVal = this.getField("LevelCheck").value;
if((chkVal != "Off") && !isNaN(chkVal))
event.value = this.getField("NumHours").value * Number(chkVal);
else
event.value = 0;
Copy link to clipboard
Copied
Thank you so much, this worked perfectly. Really appreciate the help!