There are two text fields at hand, and the checkbox itself. The text fields are:
"unit1" (the price customer paid initially for the product)
"text1" (the restock fee if applicable)
The check box has been labeled "AddRS1"
If the check box AddRS1 is checked, the value of text1 should become (the value of unit1) * .2 (to represent a 20% restock fee). When it is left unchecked or if the check is removed, this value should revert to 0 and not display (which I can achieve with a validation script of
if (event.value=="0") event.value=""; )
I think I should be fine with everything else from there, it's just getting the math conditional on the check box that's throwing me for a loop.
Thanks