hi, I need to multiply the price base on the results of two fields, if field “temp-a” is less or equal to field “temp-b” or else, it is easier to see this:

if ( temp-a <= temp-b ) { price * temp-a }

else { price * temp-b }

any suggestions?

…

hi, I need to multiply the price base on the results of two fields, if field “temp-a” is less or equal to field “temp-b” or else, it is easier to see this:

if ( temp-a <= temp-b ) { price * temp-a }

else { price * temp-b }

any suggestions?

…

You might try the following – set up a hidden number field to calculate and compare the temp values and corresponding product.

**Field A:**

*calcuation* → `temp-b – temp-a`

You could then have two product fields conditionally shown.

**Product 1:**

*condition* → `show if Field A > 0 OR Field A = 0`

*calcuation* → `price * temp-a`

**Product 2:**

*condition* → `show if Field A < 0`

*calcuation* → `price * temp-b`

1 Like

© 2008 - 2021. Gravity Forms is a project by Rocketgenius Inc.