To Repeat all Form Fields for each element in a Set
You can create a form where the form fields are repeated for each element in a set and linked to each of the elements of the array.
- In the Form element onto the artboard. group, click and drag the
- Drag a Repeat Contents element onto the Form on the artboard and enter the following in the repeat expression field:
=index in scenario.entities.MY_SET
- In the Field element onto the Form. , click and drag the
- Select the Field element on the Form. In the Attributes pane:
- Set Data > Entity to the element that will store the data (MY_ARRAY).
- Set Label to ='MY_ARRAY(' + index.label + ')'.
- Set Indicies to =index.value.
<vdl-form vdl-repeat-contents="=index in scenario.entities.MY_SET"> <vdl-field entity="MY_ARRAY" label="='MY_ARRAY(' + index.label + ')'" indices="=index.value"></vdl-field> </vdl-form>