How to duplicate a group of fields and show multiple groups upon different selection choices?

  • sjck
    Asked on July 22, 2016 at 3: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.

  • Boris
    Replied on July 22, 2016 at 6:41 AM

    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:

    https://www.jotform.com/help/252-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:

    https://www.jotform.com/help/282-How-to-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:

    https://www.jotform.com/help/242-How-to-Manage-Multiple-Fields

    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:

    https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic

    Please let us know how it goes, and whether any of these two methods will work to your satisfaction.