To Repeat all Form Fields for each Scenario
You can repeat the form fields in a form for each scenario on the shelf .
The form fields will be grouped by scenario.
The example shows two Form Fields which will be repeated for each scenario on the shelf. They will be contained within the same Form.
- In the Form element onto the artboard. group, click and drag a
-
Drag a Repeat Contents element onto the Form on the artboard and enter the following in the repeat expression field:
=s,i in scenarios
- In the Form Field elements onto the Form. group, click and drag one or more
- Select each Form Field element on the Form. In the Attributes pane:
- Set Data > Entity to the element that will store the data (MY_INTEGER).
- Set Scenario to =i.
<vdl-form vdl-repeat-contents="=s,i in scenarios"> <vdl-field entity="MY_INTEGER" scenario="=i"></vdl-field> <vdl-field entity="MY_STRING" scenario="=i"></vdl-field> </vdl-form>