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 show multiple fields by conditions

    Asked by smileinfo on October 09, 2012 at 11:17 PM

    i want to have this condition:

    I have selection of Passenger Number 1, 2, 3, 4, etc

    if i select 1 then show 1 Name field, is i select 2 then show 2 name field, and so on...

    But now i can only make until 2 selection. how to make 3 or 4 selection will show 3 then 4 name fields? how to make that kind of conditions?

    thanks

    Page URL:
    http://174.37.68.44/~k9971182/new/reservasi-tiket-pesawat-domestic/

  • Profile Image

    Answered by fxr on October 10, 2012 at 03:52 AM

    Hi,

    You have to set up multiple conditions such as that described below: 

    e.g 

    If option 1 or option 2 or option 3 or option 4, show 'name 1' field

    then another condition

    If option 1 or option 2 or option 3 or option 4, show 'email 1' field 

    --

    If option 2 or option 3 or option 4, show 'name 2' field

    then another condition

    If option 2 or option 3 or option 4, show 'email 2' field 

    --

    Option 3 or Option 4 show 'name 3' field.

    Option 3 or Option 4 show 'email 3' field.

    --

    Option 4 show 'name 4' field.

    Option 4 show 'email 4' field.

    --

    I have omitted screenshots for the last 4 conditions but I am hoping I have shown enough for you to get the logic.

    Please let us know if you need any more help understanding how to set this up.

     

  • Profile Image

    Answered by smileinfo on October 16, 2012 at 12:07 AM

    Hi,

    Thank you for your reply, but i think this is not solve my problem...

    What i want is like this, 1 Condition show many fields. Sample:

    If "Jumlah Penumpang" equals to "4" Then shows 4 name fields

    If "Jumlah Penumpang" equals to "6" Then shows 6 name fields, and so on...

  • Profile Image
    JotForm Support

    Answered by jonathan on October 16, 2012 at 12:55 AM

    @smileinfo

    Hi, unfortunatelly, the Condition Logic could not do the 1 "IF" to many "Then" rules yet. There was already a feature request to update this feature. We can only wait for the time when the feature will be released.

    For the meantime, I think you can duplicate the "if" rules with 1 "then" repeatedly and just changed the result field (different Nama).

    Hope this help clarifies it. Please inform us if you have further inquiry.

    Thanks.

  • Profile Image
    JotForm Support

    Answered by idarktech on October 16, 2012 at 03:45 AM

    @smileinfo

    My suggestion is to use "Spinner" tool it's under Survey Tools. With this, you only need to create 9 conditions for showing/hiding the 10 fields. To do that, you have to use "Greater Than" condition. Example:

     

    Just create for the other remaining fields.

     

    Demo Form: http://form.jotformpro.com/form/22886773026967?

    Hope this helps. Thanks!

  • Profile Image

    Answered by smileinfo on October 16, 2012 at 10:52 AM

    wow.. idarktech thank you.. you are my savior... it works well. =)