if in calculation field
-
Hello,
I would like to handle a coupon code in my form.
If the correct coupon code is entered in field COUPON the calculation field TOTAL should show 0 – otherwise it should show: 11.
I tried this by using an if construction in TOTAL.
This is what I’ve entered in the “Manual formula” of the calculation field:
if ( %SLUG_COUPON% == "codeXX" ) { %SLUG_TOTAL% = 0 } else { %SLUG_TOTAL% = 11 }Doesn’t work – is it not possible to use IF in a calculation field?
Thanks for help.
Chris
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘if in calculation field’ is closed to new replies.