- ywamharpendenAsked 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.
- gori-mathewAnswered on May 15, 2012 at 04:52 PM
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.