ACF calculation showing different result in form and in email
-
I have a form which has a calculation field that displays two different values depending on whether it’s the front-end form or the email/pdf rendering. Undesired behavior.
The way it works is we have a hidden field that is populated from a ACF custom field by an mu-plugin that Forminator tech support helped me set up – works great, thank ya’ll ?? – then there’s a “Total” field which takes that hidden field and adds it to the result of another calculation field. This works fine both frontend and in the email.
Then I have a Processing Fee calculation field which takes the result of the Total field and multiples it by a set fraction 0.035. This works fine in the front end form, but in the email gives a completely erroneous result that looks like it’s taking it’s value from the original hidden field, ignoring the calculations in the middle.
Total {calculation-6} = {hidden} + {calculation-5} *** correct in form/email
Processing fee = {calculation-6} * 0.035 *** correct in form, wrong in email
Given initial values of hidden and calculation-5 of 4200 and 500, the Total field = 4700 – correct, both on form and in email.
And here’s the problem: on the form, the Processing Fee field gives the correct value = 164.50, BUT the email gives 4200, or the original {hidden} field value.
This is consistent no matter what values are fed into it, it always displays the original {hidden} value and not the calculated value.
Where to go from here? I’ve been over it and redid it several times, with the same result each time. Help. :()
Thanks in advance ??The page I need help with: [log in to see the link]
- The topic ‘ACF calculation showing different result in form and in email’ is closed to new replies.