Hi Guys,
I am having some difficulty figuring out how to do the below:
I have a form where i need someone to enter an amount lets say 1000, when they submit the results I have an email which calls on the data in the field and sends this to the user, but I need the 1000 to be multiplied by 10 and send as 10000?
I hope that makes sense, I see there is some multiplication sections in the events on the text field - how can I do this?
I am having some difficulty figuring out how to do the below:
I have a form where i need someone to enter an amount lets say 1000, when they submit the results I have an email which calls on the data in the field and sends this to the user, but I need the 1000 to be multiplied by 10 and send as 10000?
I hope that makes sense, I see there is some multiplication sections in the events on the text field - how can I do this?
Hi DrSmith69,
I would probably do that with Custom Code and use PHP to do the multiplication before the email is sent.
Bob
I would probably do that with Custom Code and use PHP to do the multiplication before the email is sent.
Bob
Thanks GreyHead,
I have come across the section 'Modify Data' where you can Data Override,
Would this also work? What is the format this section uses?
I have come across the section 'Modify Data' where you can Data Override,
Would this also work? What is the format this section uses?
Hi DrSmith69,
It doesn't look to me as if the Modify Data action supports calculations.
Bob
It doesn't look to me as if the Modify Data action supports calculations.
Bob
Hi,
You will need a PHP action before the email action with this:
Best regards,
Max
You will need a PHP action before the email action with this:
$this->data["field_name] = 10 * (int)$this->data["field_name];
Best regards,
Max
This topic is locked and no more replies can be posted.