Forum Academy Marketplace Showcase Pricing Features

Makes Changes to Thing Based on Text's Value

I have a text element which displays a customers total. Customers can apply coupon which come in two varieties; fixed amount and percentage. Since there are two varieties, I’ve had to set up two conditions within the text element for two different math.js API calls (since discounting a fixed amount requires a different formula than a percentage).

I want to save the text elements body (the total) as a “Total” data field. So the workflow would be “Makes changes to a thing” … Total = but I can’t select a text elements value/body. Usually, I would set a custom state but that won’t work in this context, since I have two different conditions set on the text element.

Any suggestions?

After thinking about it for a bit more, I suppose I could set two workflows, each with its own condition which matches the condition of the text elements conditions.