Creating Drop Down List Options from Flow OutputLast Updated: 10/03/2018 Introduced in Version: 2.0
In a form, drop down list options can be created from a number of sources – including flows. To create drop down options from a flow, first create a flow that is configured to output the required information for the drop down options. Then, in the Form Designer, create a form with a Drop Down List component that uses the flow as a List Input Source. Finally, create a flow that displays the form with the drop down list.
The example flow will display a form containing a drop down list and a button. In the drop down list, users will be able to select from a list of all of the folders in our system. This drop down list will be populated by a flow. Another flow will be created to display the form.
- GetAll: Integrations > All Integrations > Internal Services > FolderService
- [Form Name]: Flows, Rules, Forms and Reports > Forms[Interaction] > [Current Folder]
Begin the example by creating the flow which will retrieve a list of system folders. In the project folder, select the CREATE FLOW button.
In the resulting Create Flow dialog, name the flow and select CREATE to open it in the Flow Designer.
Next, connect the step outcomes.
To be useful as a source of input for the drop down list options, the flow must be configured to output the folder names it retrieved in Get All.
To do this, select the End Step. In the Properties panel, in the Output section, select the Add New link.
Name the output Folders. Under Type search and choose Folder.
The flow is expected to output a list of folder objects, not just one, check the Is List checkbox and select CLOSE to save the output definition.
Next, create the form which will display the drop down list of folder names. Begin in the project folder by selecting the Create Form button at the bottom of the window.
In the resulting Create Form dialog, name the form and select CREATE to open it in the Form Designer
In the Form Designer search for the Drop Down List component in the Form Controls panel, then drag it to the work space. Next, place a button on the form by dragging the Button component from the Form Controls panel to the work space.
With the Drop Down List selected. In the Properties > Input Data section, under the Type selector. Search for and select Folder in the resulting Pick Entity dialog.
Each folder object possesses several properties – any one of which might be suitable to display in our drop down list. To specify the folder name, in the Properties panel, in the Input Data section, select EntityName in the Display Field drop down list. Change the List Input Source to Flow which will allow the drop down list to call a flow.
Identify the flow choosing the selector within the Flow ID and connecting to the flow where the Get All step is located.
Next, create the second and final flow. Back in the project folder, select the Create Flow button.
In the resulting Create Flow dialog, name the new flow and select CREATE to open it in the Flow Designer.
Next, connect the steps’ outcomes.
Save the flow by clicking the Save Flow link at the top of the Flow Designer.
The form is presented. When letters are entered in the drop down list, the folder names containing that pattern automatically appear in a list beneath our control. Alternately, select the arrow on the right side of the drop down list to show all of the available folders.