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 can I make a variable number of fields based on a user choice?

    Asked by neenah71 on June 28, 2016 at 02:32 PM

    Hello,

    Never mind, got it now:)

     

    I'm creating a form that members of our congregation can fill out to provide information on each member of their household. I'd like to create a conditional logic of some sort that will enable a head of household to fill out information for up to eight children but so that the applicable fields will only show if he selects a certain number of children or if there is a button for adding another child. Are there any recommendations for a simple way to accomplish this?

    Page URL:
    https://form.jotform.com/61746111158957

    create fill hello information conditions number based
  • Profile Image
    JotForm Support

    Answered by Nik_C on June 28, 2016 at 03:36 PM

    You can use the Configurable list widget and users would then add fields for every child instead of the conditions technique, you can also limit the number of children they can input. You can read about how you can  setup the Configurable list widget here.

    If however, you want to go with the conditions you will have to create a group of fields for every number of children from dropdown. After that you will create a condition for each choice from dropdown that will then show or hide multiple fields at once based on the choice.