# I am looking at a conditional expression that sets a minimum price .

• Gordon
Asked on November 07, 2014 at 04:04 AM

I am looking at a conditional expression that sets a minimum price .... eg if [calc_result 1] * [calc_2]< 40 then [answer] = 40

This is a re-post of a comment on How to Insert Text or Calculation into a Field Using Conditional Logic

• ashwin_d
Answered on November 07, 2014 at 07:25 AM

Hello Gordon,

I am not sure if I have understood your question correctly. Do you want to update the price in a Payment question or in a "Form Calculation" or any other text box?

Please be noted that it is not possible to alert the product/subscription prices of payment question but adding condition for updating a textbox or a form calculation widget should be possible.

But a condition to achieve your requirement should be something similar as displayed in the screenshot below:

Please check the following screenshot on how to build a similar condition in your form:

Hope this helps.

Do get back to us if you have any questions.

Thank you!

• Gordon
Answered on November 07, 2014 at 10:41 AM

Basically what I have is --- I use the driving distance calculator widget to work out kilometers (is it possible somehow to make the default Kms not Miles?) the kilometers are then multiplied by a factor worked out by how many people are making the journey . So using a factor of \$1.8 for up to 4 people over a distance of 20kms I get \$36.00 , However my minimum charge is \$60.00 so any amount under \$60 has to be changed to \$60 ,

I think an if {result}< 60 then {result} = 60 is what I need to achieve in the simplest terms

Regards
Gordon

...
• raul
Answered on November 07, 2014 at 11:18 AM

Hi,

Using the example posted by @ashwin_d.
I created this demo form for you: http://www.jotformpro.com/form/43104816734957

I added a new read-only textbox field that will show 60 if the calculated quote is less than \$60.
These are the conditions created for the textbox:

Please take a look at the demo form and let us know if it works for you.
You can also clone it of you want to.

Best Regards.

• oklife
Answered on December 23, 2016 at 11:44 PM

Hello, how can i recreate this form now with these similar conditions.

Thank you.

• ashwin_d
Answered on December 24, 2016 at 01:53 AM

Hello oklife,