The spinner is reacting to changes late

  • Profile Image
    abanuelos
    Asked on June 17, 2011 at 03:41 PM

    I have a spinner ranging from 1 to 5. When the spinner is turned to 2 the conditions are set to:

    HIDE Driver 3 and it's associated Name, Birth Date, and License State

    HIDE Driver 4 and it's associated Name, Birth Date, and License State

    HIDE Driver 5 and it's associated Name, Birth Date, and License State

    However, it only works when the spinner is changed from 2 to 3 or from 2 to 1. Is this an error with the spinner?

  • Profile Image
    liyam
    Answered on June 20, 2011 at 04:52 AM

    Hello abanuelos,

    When I looked inside the conditions of your form, I noticed you only had set a few and it lacks the clause to cover all fields for your options.

    Here's a sample logic on how many conditions should conditions page contain:

    1. If you are going to select 1 driver:
         1.1 Make a condition to hide drver 2
         1.2 Make a condition to hide driver 3
         1.3 Make a condition to hide driver 4
         1.4 Make a condition to hide driver 5

    2. If you are going to select 2 drivers:
         2.1 Make a condition that will hide driver 3
         2.2 Make another condition to hide driver 4
         2.3 Make another condition to hide driver 5. 

    3. If you are going to select 3 drivers:
         3.1 Make a condition that will hide driver 4
         3.2 Make a condition to hide driver 5

    4. If you are going to select 4 drivers
         4.1 Make a condition to hide driver 5

    Now consider that you have 4 fields each, multiply the 4 fields by the number of conditions, then you get the total number of conditions you will need to put up.

    I would also suggest that you use drop down menus instead of spinners as you can enter numbers greater or lesser than what is supposed to be specified. Another is there is a bug when pressing the up and down icons on the spinner field, but no problem with entering a certain number or pressing the up and down arrow keys in your keyboard.

    Here's a sample form that I cloned and had the conditions set for your reference: http://form.jotform.com/form/11693525235

    If you need further assistance, or if you have other questions or concerns, please let us know.

    Thanks,

    Liyam

  • Profile Image
    abanuelos
    Answered on June 21, 2011 at 02:36 PM

    Hi Liyam,

    Thanks for the response.

    I switched from the spinner to a drop down box, but now the whole "Driver" part of the form is buggy. I've already double and triple checked my conditions.

    The cloned form that you made worked exactly as I want it, except of course for the bug with clicking the spinner buttons. It was perfect using the keyboard.

    I'm not sure what the problem is.

    http://www.jotform.com/form/11635129753

  • Profile Image
    liyam
    Answered on June 21, 2011 at 11:57 PM

    Hello abanuelos,

    You will have to rewrite the condition in it when you delete the old field and add a new one to replace it.

    Since my previous condition used the operator "less than", with dropdowns you will have to use "equals".  and for every condition you have used, you need to make sure that it matches properly to what you need to achieve.

    Example:

    If you want the label "Driver 5" to be hidden when you are selecting the Total Number of Drivers field to '1' in the dropdown menu, your condition for label driver 5 should be

    IF [Total number of drivers] field [Equals to] [1]
    Then [Hide] [Driver 5] field

    Now if you wish the label "Driver 5" to be hidden when you are selecting the Total Number of Drivers field to 1-4 in the dropdown menu, you should add more rules in it.  So your condition should be

    IF [Total number of drivers] field [Equals to] [1]
    IF [Total number of drivers] field [Equals to] [2]
    IF [Total number of drivers] field [Equals to] [3]
    IF [Total number of drivers] field [Equals to] [4]
    if [Any] of these conditions are matched
    Then [Hide] [Driver 5] field

    You may clone and review the conditions from this form, or you can just use this instead: http://www.jotform.com/form/11712515893

    If you have further questions, please let us know.  Or if you have other questions or concerns, just post a new topic, we'll be happy to assist.

    Thanks,

    Liyam

  • Profile Image
    abanuelos
    Answered on June 28, 2011 at 07:59 PM

    My logic was wrong when setting up the conditions. This is exactly what I needed to do!

     

    Thanks,

    Adrian

  • Profile Image
    serkan
    Answered on June 30, 2011 at 02:57 AM

    Thanks all for detailed explanations and examples. This issue has been fixed now. Don't forget to clean your browser caches.