• Resolved pparkadmin

    (@pparkadmin)


    Hi, I’m trying to do conditional calculation on my form, for example if they buy up to 10 items the price which is right now a hidden fieldX is used for the calculation, but if that number is 11 or more, then I need to change hidden fieldX to a new value (think discount).

    I literally see no way to do that in caldera, Ive even used jquery to detect if the number in the first field goes over 10, then changing the fieldX to a new value, but that has no effect on the overall calculation… am I doing this wrong? It should be a simple matter considering its a common task in any form.

Viewing 1 replies (of 1 total)
  • Plugin Contributor christiechirinos

    (@christiechirinos)

    Hi Ppark, thanks for using Caldera Forms, that means a lot to us 🙂

    That’s a tricky one. Technically, you’re talking about a manual calculation with a conditional statement (if qty is > 10, then use field 1 in calculation, else use field 2…) which Caldera Forms’ UI doesn’t currently support.

    I wonder if you could “fake” your goal of applying a discount code to orders of 11 items or more by having two hidden calculation fields, one which calculates with a discount code and one without. Then, have a third field with a conditional “if quantity field is greater than 10″… it shows / hides the corresponding calculation field.

    This may or may not work depending on your goal. Let me know your thoughts, I’m happy to help.

Viewing 1 replies (of 1 total)

The topic ‘Conditional pricing calculation’ is closed to new replies.