Handling Large Drop Down Lists
  • 16 Jun 2021
  • 2 Minutes to read
  • Dark
    Light

Handling Large Drop Down Lists

  • Dark
    Light

Article Summary

Overview 

The Decisions Form designer offers a multitude of tools that can be used to collect information via user input from a Form. One such method is the selection of data from a drop down component; these data options can be static values or dynamically populated via a Flow. The following article will explain how a Flow can be used to dynamically populate a drop down component with a large list utilizing user-typed Strings of text.  

It is best practice to assume a large list contains more than 50 data options.

Example 

  1. Navigate to any Designer Folder and select CREATE FORM from the top toolbar.

  2. In the resulting Create Form dialog box, select and name the Normal Form.

  3. Select CREATE to open the Form Designer.

  4. In the Form Designer, in the Toolbox tab located on the left side, select and drag Drop Down List from the FAVORITES section.

  5.  Drag and label a Button from the FAVORITES section, place it under Drop Down List.

  6. Next, in the Input Data > Type drop down component select All/Search and search for "Account". PICK the first option.

  7. Select EmailAddress from Input Data > Display Field.
  8. Select Flow from Input Data > List Input Source.

  9.  Next, after selecting the PICK FLOW ID box, click CREATE from the resulting CREATE or PICK FLOW dialog window

  10. Select and name the default Flow option. Click CREATE and this will open the Flow Designer.

  11. Select the Start step to navigate to its Properties tab.

  12. Under FLOW INPUTS > Flow Input Data, select SHOW EDITOR.

  13. From the Flow Inputs window, configure one String [Text] type with the Name "Text" then click CLOSE.

  14. From the Toolbox panel, drag and connect a Length Greater Than step to the Start step.

  15. Select the Length Greater Than step and use a Constant mapping of three under Inputs > Length.

  16. Using the Select From Flow mapping on Inputs > Length, choose the String [Text] from the Start step.

  17. From Toolbox > FAVORITE STEPS, pull and attach a Fetch Entities step to the 'True' path from the previous step. 

  18. In the Properties panel, under ENTITY FETCH DEFINITION > Type Name select Account from the All/Search result.

    1. Under ENTITY FETCH DEFINITION > Fetch Criteria select ADD NEW. 

    2. Under Add Fetch Criteria > Field Name select emailAddress.

    3. Under Add Fetch Criteria > Query Match Type select Contains. Then click OK.

  19. Using a Select From Flow mapping under Inputs > Email Address, select String [Text].

  20. Connect the Results, No Results, and False lines to the End step. 

  21. With the End step selected, navigate to the Properties panel > Pick From Current Data section and enable the EntityResults checkbox.

  22. Save and Close Flow Designer.

  23. Save and Close Form Designer.

  24. Select CREATE FLOW from the top toolbar.

  25. Choose and name Default Flow. Click CREATE.

  26. From the Toolbox > FAVORITE STEPS drag and attach a Show Form step to the Start Step.

  27. Click PICK OR CREATE FORM. Choose PICK.

    1. Under Create or Pick Form > Pick Existing, select RECENT, and choose the appropriate Flow. 


  28. Under Inputs > Email Address, select the Ignore mapping.

  29. Connect the Form Done step to the Flow End step.

  30. Save the Flow.

Debug

  1. In the Flow Designer, select Debug in the top action panel. In the Debugger, click START DEBUGGING.

  2. The Form will display, begin typing letters that correspond to an option in the list; these options will populate under the drop down component based on the number of letters entered.

  3. Select Done to close the Form.



Was this article helpful?