- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Creating a Mixed Type Data Repeater
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | 6.9.2 |
Root Folder | Example Lab - Mixed Type Data Repeater |
Modules | None |
Dependencies | None |
This Example Lab project demonstrates how to create a data repeater that can utilize more than one type of Form component.
Explanation
This project work by using a series of data Flows in order to add and remove items from the data repeater and lists. Upon running the main Flow, in this example that is titled "Run Me" A from will be displayed with several options on the left-hand side.
On the upper left, there is a text box labeled "Name" Inserting text here will label any Form component subsequently added to the data repeater with said input.
Clicking the "Add Text Element" will add a textbox to the data repeater and clicking "Add Dropdown Element" will add a dropdown list. There is also a list displayed at the bottom left which can have values added and removed at any time. Adding values to this list will allow any subsequently added dropdown elements to be pre-populated with the contents of the list. The list can then be altered before adding another dropdown list for another unique entry to the data repeater.
Each button in the Form works by running a data Flow upon being clicked. For Example When the "Remove From List" button is clicked the "Remove From List" data Flow will be run. This data Flow takes in the selected list item and the original list. These inputs are then passed into the Remove Item From List step where the selected item will be removed from the list. Once the item is removed the new list will then be output by the Flow and refresh the list displayed in the Form.