Call in a form segment, rather than build out sections over and over again
TAC Victoria
It would be great to be able to build out a form segment and call it in to a form as required.
For example, we have forms where the user may need to add in the details of family members. For each family member there are a number of fields - name, date of birth, phone number, address etc
After adding in the first family member user can choose to 'Add another family member'. At this point we'd like to be able to use conditional logic and simple call in the same fields that were used for family member 1.
At the moment this isn't possible, so we need to build out the whole section again... and again... and again...
This type of functionality has many use cases, could be used for any situation where conditional logic is applied and user has the option to add more information to the form. Some of the forms we are building have theoretically no cap on the amount of extras a user may want to supply. Manually building out a static amount that are only used if conditional logic is triggered is time consuming and makes forms in the system incredibly long and complicated.
I see this working as building a form for, in this example all the fields required to collect information about 'family members' and then using conditional logic to call that form into the main form as required. E.g. If user selects 'Yes' to add a family member, call in the 'family members' form.
B
Brendan Halloran
I think you can do what you're asking for though the Advanced Forms product in the DXP, using the "Field table" feature:
https://docs.squiz.net/advanced-forms/latest/field-types/field-table.html
Here is an example i have whipped up:
https://djsir.advancedforms.squiz.cloud/form/add-more-rows