Setting a minimum range value based on a previous response

  • Profile Image
    SNIP2016
    Asked 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 

  • Profile Image
    Mike
    Answered 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
    grade4pagasa
    Answered 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
    grade4pagasa
    Answered 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.