• Resolved nicecap

    (@nicecap)


    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)
  • Plugin Author Josh Pollock

    (@shelob9)

    Thanks for using Caldera Forms. This looks like a specific support request – just so you know, do not offer support for Caldera Forms via this board. You might get help from the power users on here, but the channel to get support from us directly is to open a support ticket at https://CalderaWP.com/support. Through that form, someone from our team will follow up about this issue within 1 business day.

    Please note that to use our support form, you must have an active license for any Caldera Forms add-on (https://calderawp.com/caldera-forms-add-ons/) or a support license (https://calderawp.com/support/#priority-support).

    Sorry about the hassle, and thanks for understanding that this is separate channel allows us to ensure that we are able to continue to develop great products for you.

Viewing 1 replies (of 1 total)

The topic ‘if in calculation field’ is closed to new replies.