Custom calculation script involving checkboxes resulting in different things
Complete Javascript novice here. I'm creating a form which is fairly complex and I can't get a ticked checkbox to even fill a text feild let alone do what I actually need it to do. Hopefully someone can help with the code I need.
The form involves clients listing products and $ value investments they would like for each product. Those investments fill in a 'Subtotal' field easily with a sum. Depending on the amount of products they are getting, a discount can be applied. 2 products = 10% off, 3 products = 15% off, 4+ products = 20% off. Below the Subtotal field I want a Subtotal with discount applied (SubtotalDiscount) field. I've currently got checkboxes for the three discount options. When one of the checkboxes are ticked, I want a calculation script to take the value in the 'subtotal' field, calculate the corresponding %, then add that value to the 'subtotal' value and place it in the 'SubtotalDiscount' field.
Does anyone have any clue on the code I would need for this?
