How to add 1 to n fields based on a user selection

  • lplatz
    Asked on October 30, 2014 at 11:22 PM

    One to Many via a subform?? 

    Here is what I'm attempting to accomplish. Collect basic profile information of an individual, then via an action such as an "add" button, collect information on 1 to n of items associated with that individual. Could be anything from cars, pets, children, etc linked to this individual. 

    Any ideas for an approach using JotForm tool?

  • jonathan
    Replied on October 31, 2014 at 9:12 AM

    Hi,

    If my understanding of the requirement is correct, I think the Configurable List Widget will work best on the requirement.

    Check it here  http://widgets.jotform.com/widget/configurable_list

    How to add 1 to n fields based on a user selection Image 1 Screenshot 20

    Here is a demo jotform http://form.myjotform.com/form/41112368425549 you can try with the Configurable List widget on it.

    If you test the demo jotform, you can see that the widget have the capability to add new entry/details/information to a single entity (i.e. a person/Name)

    You should also check this user guide http://www.jotform.com/help/282-How-to-Set-Up-the-Configurable-List-Widget

     

    Hope this help. Please tell us if this can work on what you need or not.

    Thanks!

     

     

     

     

     

  • lplatz
    Replied on October 31, 2014 at 4:40 PM

    This looks very promising.  I'll certainly give this widget a try.  Thank you for your support.

  • jonathan
    Replied on October 31, 2014 at 5:49 PM

    Hi,

    Thank you for taking the time to update us.

    Please feel free to contact us again anytime for any assistance you need.

    Thanks.

  • lplatz
    Replied on November 1, 2014 at 7:56 PM

    If I only had but a few data points to collect, this solution would have fit the bill.  Unfortunately, the data fields I need to collect is significant which makes the table size huge (# of columns).  This pushes the right columns of the table off of the webpage making the usability poor.  If there were a way to reformat the data collection fields to a normal web form format, then we'd be back in business.  If another solution exists or the configurable list table can be reformatted please let me know.

    Best Regards,

    Les

  • raul
    Replied on November 1, 2014 at 10:05 PM

    Hello,

    Could you please tell us how many data fields are you planning to capture?
    Are all the items required? Or can they be displayed depending on a selection, for example if I select Car then I would have to provide information about my car.

    It would be great if you could provide an example to what you want to accomplish as it will allows to understand your requirements and then provide a possible solution.

    We will await for your response.
    Thanks.

  • lplatz
    Replied on November 12, 2014 at 3:31 PM

    The following is my current form. There are 7 fields with 5 required.

    Functionality is as follows. Client completes standard new client profile form (name, address, etc.) for their new account. At the botton of that form, they click a button to "Add Pets". That action would open a pet data collection form. On completion of the pet data collection form, the user would have the option to either "Form Complete" or "Add Another Pet". The later election would provide a new data collection form. This functionality cycle would be limitless. The max pet load I have for any one client has never exceeded 10 pets.

    Form Fields to note. 

    Customer ID: I'll manually input upon receipt

    Pet ID#: I'll manuallyl input upon receipt

    The large text area on the right of the form: that is an optional pet image upload area

    How to add 1 to n fields based on a user selection Image 1 Screenshot 20

  • Mike_T Jotform Support
    Replied on November 12, 2014 at 4:54 PM

    We can use conditional logic on form ( https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic ) to show additional fields based on a user selection.

    For example, if the 'Add Another Pet' is equal to 'Yes' then show additional fields.

    Form sample:

    http://form.jotformpro.com/form/43156164108955

    How to add 1 to n fields based on a user selection Image 1 Screenshot 20

    You can clone the form ( https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL ) to check it.

    If you need any further assistance, please let us know.