Limit input value based on number of selections RESOLVED

  • AA_C
    Asked on July 11, 2015 at 5:43 PM

    formID=51914358490965

    Hi,

    On my form I have fields for entering a value between 1 and 4.

    The value represents a judge picked for that event.

    Up to 4 judges can be selected for a trial but if only 1 or 2 are selected I want to limit the value that can be entered to only 1 or 2. Also I don't want the same value being entered in both boxes.

    In my image I show the first row. Box 1 is the number of this type of event,

    box 2 and 3 the number of judge(s) for this event. The same number should not be available for each box in the row, so 1 cannot be entered in both boxs.

     

    TNX,

    Robert

     

    Jotform Thread 608217 Screenshot
  • Chriistian Jotform Support
    Replied on July 11, 2015 at 10:52 PM

    Hi AA_C,

    Thanks for contacting us.

     

    I am currently checking your form. Please give me more time to further check this issue. I will get back to you as soon as I get a result. 

     

    Regards.

  • Chriistian Jotform Support
    Replied on July 12, 2015 at 12:04 AM

    Hi AA_C,

     

    Can you try the following steps to implement the logic?

    1. Add four (4) Text Box Field. Set fields to hidden. 

    Limit input value based on number of selections RESOLVED Image 1 Screenshot 80

    2. Add Update a form field value conditions to the added Text Box fields.

    Limit input value based on number of selections RESOLVED Image 2 Screenshot 91

    3. Add a one (1) Calculation Field. Set field to hidden.

    Limit input value based on number of selections RESOLVED Image 3 Screenshot 102

    4. Setup Calculation field as shown below. (Judge1,Judge2,Judge3,Judge4)

    Limit input value based on number of selections RESOLVED Image 4 Screenshot 113

    5. Add Text field for the error messages.

    Limit input value based on number of selections RESOLVED Image 5 Screenshot 124

    6. Add condition to show error if user selected incorrect judge.

    Limit input value based on number of selections RESOLVED Image 6 Screenshot 135

    7. Add condition to show error if user selected the same judge.

    Limit input value based on number of selections RESOLVED Image 7 Screenshot 146

    To implement this to the other fields you just need to repeat steps 5 to 7 (replacing {SSJ1} and {SSJ2} to the name of the other fields).

     

    To further see the setup, you can check my cloned form here - http://www.jotformpro.com/form/51918448516968?.

     

    Do let us know if you need further assistance.


    Regards.

  • AA_C
    Replied on July 12, 2015 at 1:38 PM


    ...
  • AA_C
    Replied on July 12, 2015 at 1:43 PM

    HI,
    I have it all figured out NOW... Many Thanks to ALL!

    Robert