Calculation field, javascript Math.min() not saving as entry or on email
-
Caldera Forms is a great plug-in, thank you for all of the work it must have taken so far. My problem: I have a calculation field that is using a Math.min() function to cap a discount at 33%. The field calculates correctly in the form, but the field is 0 or empty when it is saved in the entries, and on the email being sent out. My formula is: %annual_total_pre_discount% * ((Math.min(%forms_to_file% * %volume_discount_per_100%, 33)) / 100)
It seems like all of the calculation fields are being run again on submit, and that function isn’t working. Is there anything I should be doing to this formula to get it to work in all places?
- The topic ‘Calculation field, javascript Math.min() not saving as entry or on email’ is closed to new replies.