Buy Now
Sign in

How to do calculations on a variable?

Tef_71 , May 29 at 23:27
T
Tef_71
Hi,
In v5 I was able to put PHP code in email, no longer.
I need to do a simple multiplication of {data:price} and put the result in an email. Somebody to help me?
Thanks in advance.
GreyHead
Hi Tef_71,
Please use a PHP action before the Email action and save the result to the form data. Please see page 34 of the CFv6 manual. You can then include the new form data item in the Email template.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
T
Tef_71
Thanks a lot GreyHead, your answer was very usefull.