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.
How to duplicate a group of fields and show multiple groups upon different selection choices?Asked by sjck on July 22, 2016 at 03:51 AM
I'm creating a transport claims form that will allow users to choose a) single claim or b) multiple claims.
If the user chooses multiple claims, user will enter ## of claims and the same group of 8 fields should appear X ##.
So if user enters 5, there should be 5 sets of 8 fields for user to fill up.
Hopefully somebody understands what i'm trying to do here.
We cannot have a random amount of multiple claims, since regular form fields must be created in advance. This means that with regular form fields, you would create all the fields for the maximum amount of multiple claims you are looking to receive, such as perhaps up to 10 multiple claims per form.
However, we do have some widgets that allow for a random amount of rows / claims to be entered, such as our Configurable List widget or Infinite List widget. The following guide explains how to add a widget to your form:
And the following guide provides some more details about how you can set up the Configurable List widget:
While allowing a random amount of possible claims to be collected, these widgets unfortunately cannot be used inside calculations, so if you were intending to perform any calculations based on the claims that are entered, then you would have to use ordinary form fields instead of the widgets.
With ordinary form fields, you can duplicate multiple fields easily by following this guide:
With our conditional logic, you can also use Show Multiple conditions to show multiple fields, based on the number of claims your your users have selected:
Please let us know how it goes, and whether any of these two methods will work to your satisfaction.