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

    Conditions: Inserting a value into one field based on a quantity in another

    Asked by Wtfuck on April 29, 2015 at 08:24 AM

    Hello,

    Would like to know how to prepopulate a field regarding another field quantity

    Thanks

    Screenshot
    quantity conditions insert value
  • Profile Image

    Answered by Ben on April 29, 2015 at 10:20 AM

    Looking at the image above, that would be the right way to do it - checking if the value in Form Calculation is in the range we want and then inserting the right value into the field (Marge in the case above).

    The only possible issue that I see above would be that few conditions would be applied at the same time, so you should change them a bit to be with "ALL" matching (Rule 1 AND Rule 2), so it is changed into:

    If Total Vetement Greater Than "25" AND
     if Total Veterment Less Than "40"
        Insert 10 into Marge

    The same logic is then applied to the other conditions, except the top one (since we need to check if it is greater than it) and the bottom one on the screenshot (since we only need to check if the value is up to it).

    Hopefully this helps you, but if you would like us to help you with the actual form, we could do that as well, just let us know what is the form.

  • Profile Image

    Answered by Wtfuck on April 29, 2015 at 05:52 PM

    Ok Thank you Ben,

    Just for some info I have to add more condition for 25 qty 40...

    Thanks for your help

  • Profile Image
    JotForm Support

    Answered by jonathan on April 29, 2015 at 07:49 PM

    Please do let us know if further assistance is needed or if still not working as intended.

    Thanks