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

    How to use spinner in conditions? In form it doesn't work correctly

    Asked by nizar.g.qassis on February 24, 2014 at 05:22 AM

    hallo,

    i have 10 field in in my form, and i added a spinner, what i want to do is that if the spinner is equal to 4 then

    hide the other 6 and if it's equal to 5 then hide the last 5 and if it's equal to 6 then hide the last 4 and so on.....

     

    the problem is that only the first condition works and the others don't, if i change the spinner value to 5 all 10 field will

    be shown.

     

    is there a more accurate condition to do this ? or what should i do ?

     

    thank you,

    Nizar G. Qassis

    form doesn't work doesn't work problem shown equal to all
  • Profile Image

    Answered by jedcadorna on February 24, 2014 at 07:00 AM

    Hello,

    Thank you for contacting us.

    Since what you want is to show multiple fields based on the input, you can follow this guide on how to hide and show multiple fields. http://www.jotform.com/help/196-How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry

    Please see this sample http://www.jotformpro.com/form/23088518389971? on how the spinner was implemented.

  • Profile Image

    Answered by nizar.g.qassis on February 24, 2014 at 07:27 AM

    hello,

    so there's no other way but to use the form collapse ? i don't want to use it.

     

    but thank you anyway,

  • Profile Image

    Answered by pinoytech on February 24, 2014 at 08:07 AM

    Hi,

    Without using form collapse tool, you can still create condition in your form using spinner. Please take a look at this clone form to see how it works.

    http://www.jotformpro.com/form/40543345560955

    Here's the condition you need:

    If you need further assistance, please let us know.

  • Profile Image

    Answered by nizar.g.qassis on February 24, 2014 at 10:22 AM

    hello,

    thanks for your replay, but what i need to do is not exactly what you have done,

    i need the spinner default value is 3 and to show me 6 fields and then increase thespinner to 4 to show 8 field and last the spinner value to be 5 and show you all field,

    i tried to do this in the conditions you provided i couldn't do it.

    what i did is this:

    if spinner equal to 3 or 4 or 5 then show fields 1,2,3,4,5 and 6

    if spinner equal to 4 or 5 then show fields 1,2,3,4,5,6,7 and 8

    if spinner equal to 5 then show fields 1,2,3,4,5,6,7,8,9 and 10

    can you tell me please if this is correct ?

     

    thank you,

    Nizar G. Qassis

  • Profile Image

    Answered by EliezerN on February 24, 2014 at 11:21 AM

    Thanks for the explanation

    Please take a look at this form if this is what you are looking for: http://form.jotformpro.com/form/40544546112952

    The way you setup your conditions was partially correct, however, you miss something to get them working as you expected. You needed to use the property "If spinner is Greater than" not only "is equal to".

    Now, I accomplished that by using the method suggested in this guide: How to Hide or Show Multiple Fields at Once Based On a Single Conditional Entry

    That way it saved us the work to setup conditions for each single field.

    If this is what you are looking for, you can clone my form and use it for your needs and also check the way I setup the conditions. Here is how to clone it: How to clone an existing form from a URL

    Please inform us if you still need assistance with this inquiry.

    Thanks

  • Profile Image

    Answered by pinoytech on February 24, 2014 at 12:51 PM

    Hi Nizar,

    Can you please take a look at this clone form again if this is what you want to achieve?

    http://form.jotformpro.com/form/40544432218953

    If so, here's the condition:

    You might wondering why the value of quantity is from 1 to 10. I just do that for you to see what fields have been added if spinner value change.

    If you need further assistance, please let us know.