Deep dive: Generate repeatable groups from associated records
Appearance
| Warning | Work in progress! We are in the process of updating the information on this page. Subject to change. |
In this guide, we will demonstrate how a custom JavaScript function can be used to generate as many repeatable groups as there are associated records of the parent.
Use Case
This use case showcases a scenario where we open a questionnaire directly from a work order, with as many repeatable v groups as there are associated work order incidents. These repeatable groups are automatically generated based on the number of incidents. Each group contains a lookup question filled with an incident.
Prerequisites
- workorder lookup question
- repeatable group with workorder lookup incident
- note: If you want to work with more questions in repeatable group instances, these questions must be defined.