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

    Setting a minimum range value based on a previous response

    Asked by SNIP2016 on July 17, 2016 at 04:54 PM

    I have two age related boxes on my form, I would like the minimum value in months to be 4 and the max 11.  Further, in regards to years I would like 1 and 5 to be my min and max.  I have set these terms and it is working well.  Unfortunately if someone selects 1-5 years they cannot select months range from 1-3 because of the minimum value set.  Is there a way to set the range depending on value entered in the years box to determine the range in months that can be selected?  

     

    Thanks 

    minimum value maximum value
  • Profile Image
    JotForm Support

    Answered by Mike on July 17, 2016 at 06:18 PM

    Unfortunately, we do not have such conditions. You might consider using separate fields for monthly inputs.

    Then, setup a condition to show the corresponding monthly field based on a yearly input.

    Result:

    If you need any further assistance, please let us know.

  • Profile Image

    Answered by grade4pagasa on July 18, 2016 at 08:45 AM

    Hi SNIP2016

    Would the demo form I created work for you? 

    There are 2 spinner boxes: years and months. Years will only accept values from 0-5, Months will only accept values from 4-11.

    The minimum for years is defaulted to 0. However, no other actions can be taken unless the years spinner box is greater than or equal to 1.

    * If I declare a minimum value for the years spinner box, it will automatically show an error message when the form loads initially (which is not good user experience). 

    Hope this helps. 

    - Randy, fellow JotForm user. 

     

  • Profile Image

    Answered by grade4pagasa on July 18, 2016 at 08:55 PM

    Hi again,  SNIP2016

    It just occurred to me that your post above has conflicts and / or the scenario you gave is not complete.

    Specification # 1.) I would like the minimum value in months to be 4 and the max 11.  
    INTERPRETATION: Entries can either be of the following: 4, 5, 6, 7, 8, 9, 10, 11.

    Specification # 2.) Further, in regards to years I would like 1 and 5 to be my min and max.  
    INTERPRETATION: Entries can either be of the following: 1, 2, 3, 4, 5.

    Specification # 3.) Unfortunately if someone selects 1-5 years they cannot select months range from 1-3 because of the minimum value set.  

    selects 1-5 years
    INTERPRETATION: Entries can either be of the following: 1, 2, 3, 4, 5.
    INTERPRETATION: You want users to be able to select either of the months 1, 2, 3 together with 4, 5, 6, 7, 8, 9, 10, 11 (so, 1 - 11).

    CONFLICT: Specification # 3 is in conflict with Specification # 1.
    CONFLICT: Since the specified minimum is 4, numbers 1, 2, 3 cannot be entered, no matter what.

     

    Your thoughts?

    Randy, fellow JotForm user.