Initializing help system before first use

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.
  1. In the Palette > Components group, click and drag a Form element onto the artboard.
  2. Drag a Repeat Contents element onto the Form on the artboard and enter the following in the repeat expression field:
    =s,i in scenarios
  3. In the Palette > Components group, click and drag one or more Form Field elements onto the Form.
  4. 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.
Code editor
The example shows two Form Fields which will be repeated for each scenario on the shelf. They will be contained within the same Form.
<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>