What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by Gordon 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 Mathematical Calculation into a Field Using Conditional Logic

    then
  • Profile Image
    JotForm Support

    Answered by ashwin_d 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. 

    Though I am not sure what is your exact requirement and I am also unable to check your forms to better understand your requirement as I am able to find out any account with your email address  trimlad@gmail.com.

    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!

  • Profile Image

    Answered by Gordon on November 07, 2014 at 10:41 AM
    Mmm my username is madpirate , and my email is gordon@madpirate.com.au

    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

    Many thanks for your reply and apologise for my previous vagueness

    Regards
    Gordon

    ...
  • Profile Image

    Answered by raul 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.