Title: Conditional pricing calculation
Last modified: July 12, 2018

---

# Conditional pricing calculation

 *  Resolved [pparkadmin](https://wordpress.org/support/users/pparkadmin/)
 * (@pparkadmin)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/conditional-pricing-calculation/)
 * 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](https://wordpress.org/support/users/christiechirinos/)
 * (@christiechirinos)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/conditional-pricing-calculation/#post-10503379)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [christiechirinos](https://wordpress.org/support/users/christiechirinos/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/conditional-pricing-calculation/#post-10503379)
 * Status: resolved