A droplist — also known as a drop-down list, a drop-down menu, or a pull-down menu — is a toggleable list that contains several options of which only one can be selected at a time.
Use a droplist widget in a user input form when you want the user to select a single answer for a question from among many possible answers. For example, choosing a country from the long list of all the world's countries is typically done with a droplist.
Adding, Removing, and Reordering Droplist Options
To add and edit options in a droplist, double-click the droplist widget on the canvas or in the Outline pane to open the Edit Droplist dialog. You can add a single option to the droplist by clicking Add and typing the text of the new option in the field that appears. Alternatively, you can add several new options to the droplist at once by clicking Edit Many.
To reorder the droplist options, select an option and use the Up and Down buttons at the top of the dialog. To delete an option, select it and click Delete, or click Edit Many and clear the text area to delete all the options at once.
Defining the Default Option
Normally, the first option in the droplist will appear as the default option. As such, you can move an option to the top of the list if you want it to be the default.
If, however, you would like a lower-down option to be the default, check the box next to it in the Edit Droplist dialog. This will make the checked option the default instead of the first option.
Tip: To add a blank default option to a droplist, enter a single space character as the option's text.
Selecting a List Option
In the web browser, you can click a droplist to open it and select an option.
You can also dynamically change the selected option in a droplist with the Set Selected List Option action. You can choose a specific list option or use a variable value to set the new selected option.
Capturing and Evaluating the Selected Option
You can access the selected option of a droplist via the selected option of value option in interactions and conditions. For example, you can set the value of a global variable to the selected option of a droplist in order to carry that value over to a different page. You can also evaluate the selected option of a droplist in a condition so that a certain case will only fire if the option matches a particular value.
Pressing ENTER while a droplist has focus in the web browser can fire the Click or Tap event of another widget on the page, known as the droplist's "submit button."
To assign a submit button to a droplist, use the Submit Button dropdown in the More Properties menu in the Interactions pane to choose from a list of eligible widgets.
Limitations and Workarounds
Dynamically Adding and Removing Droplist Options
The options available in a droplist cannot be dynamically altered in the web browser, but you can simulate the effect by making a dynamic panel with multiple states, each containing a droplist with different contents. When you want the options in your droplist to change, switch the dynamic panel's state.
Tab order for droplists and other form widgets is determined by their layer depth, as shown in the Outline pane. You can learn more about this and how to change a widget's tab order in the Organizing Widgets article.