Avatar

Level 3

Thanks to Jono & WhyIsThisMe for getting me started on my first scripting project! I am almost there with my purchase requisition form (90% made from the tutorial).  Everything works except for the Taxable column

form.JPG

I can't figure out the correct syntax for checking the value of the check-box in the Taxable column and then doing the calculation for Tax based on the User entry in the Tax% field

(total * stateTaxPercent / 100)

I basically want to do the calculation only when the taxable = 1 and display the cumulative tax in the Tax field.

Should I use mouseup as the trigger to perform the tax calculation, and save the result as a variable and display variable in Tax field? Then if another Taxable box gets checked, I could add the new calculation to the variable. Not sure if this is an elegant way to get there.

?