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

    User can add extra fields to fill in.

    Asked by ywamharpenden on May 15, 2012 at 10:52 AM

    I am wondering if there is a simple way for a user to add extra fields.

    Our form has a section for dependents (children) of the person applying. Is there a way where they can click a plus button and it will give them the fields to add the name, age and gender of their children so they can list them. I could make a long section with enough of the fields but if there was a way where the user could add as many as they need.

    I had thought about whether this could be done using the matrix grid but I don't see a way for adding new rows to the grid where the user could do that.

    Thanks


    Daniel

  • Profile Image

    Answered by gori-mathew on May 15, 2012 at 04:52 PM

    Hi Daniel;

    Unfortunately, we do not have a feature that allows dynamically adding fields on a form. A workaround to your goal is by using conditions to hide and show fields according to the options selected by the user. Check out this sample form to see this workaround in action.

    Basically, what you need to do is create copies of the set of fields that you'd like the users to be able to add, and the radio button which will ask the user whether he/she would like to add a new field.

    In my sample form above, I have four copies of the Guest Name field and the "Add a guest?" radio button.

    Then create a condition that will show the next Guest Name field and the next "Add a guest?" radio if the previous "Add a guest?" radio option is equal to "Yes".

    Click Setup & Embed > Conditions > Hide/Show a form field then click Next.

     

     

    In my sample form, I have implemented the following conditions:

     

     If you need further help with this workaround, just let us know. Click here to learn more about conditions.