Dropdown Component

 

Overview

The Dropdown component enables your end-user to select a single option from a list. Use the Dropdown component in situations where lists contain too many options for Radio Buttons and Checkboxes components. For example, use a Dropdown component if you have six or more options, or you don't want the full list of options to display on the page at all times.

By default, the Dropdown component stays collapsed until the end-user clicks to open it. After making a selection, the Dropdown list closes again. Your end-user has the option to type the first few letters of their response to quickly find that option in the list.

The Dropdown component is located in the Primary Fields group to the left of the Module Builder.

What You'll Learn

In this article, you'll learn about the Dropdown component, how to configure its settings, and how to use it in an application.

 

A static image displaying the UDesigner Dropdown component's Display settings.

Field Text

Setting

Description

Label Text

Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field.

User-friendly labels make your module more accessible. Keep labels short and descriptive (a word or two) using title case. For longer entries, use sentence case.

Placeholder Text

A short prompt telling end-users the expected value of an input field. For example: Enter your Social Security Number. Placeholder Text displays inside the input field until the end-user begins an entry.

Contextual Help

Setting

Description

Tooltip

A short hint that displays when an end-user positions their cursor over the Questionmark Icon (Tooltip) icon. Tooltips can display across more than one line.

Default State Options

Setting

Description

Hide Label

Setting the Hide Label to  (ON) hides Label Text from displaying in Express View. Your Label Text still displays in the Module Builder.

By default, this setting is set to (OFF).

Disable User Input

When set to  (ON), end-users cannot interact with or edit the Express View's input field or element. When end-users hover over the field, their cursor changes to alert them to the status change.

By default, Disable User Input is set to (OFF).

Read Only View

When set to  (ON), the component is display-only. If another component sends content to the field, the end-user can view that content. Otherwise, end-users see the word None.

By default, the Read Only View toggle is set to (OFF).

Hide Field

Displays or hides the component from view. Setting Hide Field to  (ON) hides the component in Express View. Setting it to (OFF) displays the component. The component is always visible in the Module Builder.

By default, Hide Field is set to (OFF).

Now, configure a Dropdown component asking about an end-user's education history. The Dropdown includes six options for selection. These instructions assume that you have an open module saved with a title.

1. Drag and drop a Dropdown Component Icon Dropdown component onto the canvas.
2. In the Property ID field, enter educationHistory.
3. In the Label Text field, enter What is the highest level of education you've completed?.

A static image displaying the Dropdown component's Display settings, the Label text is filled out with the following test: "What is the highest level of education you've completed?"

4. Navigate to the Dropdown Component Icon Dropdown component's Data settings.
5. In the Values  table, enter the following:

Option Label

Option Value

Less than High School

lessThanHighSchool

High School/GED

highSchoolGED

Associate's Degree

associatesDegree

Bachelor's Degree

bachelorsDegree

Master's Degree

mastersDegree

Higher

higher

A static image displaying the educationHistory Dropdown component's data settings. The Data Values data is filled out.

6. Navigate to the Dropdown Component Icon Dropdown component's Validation settings.
7. Set Required to  (ON).
8. Click Save & Close.

Your Dropdown component looks like the following in Express View:

The data structure of a Dropdown's selection is a key value pair. The key is the Property ID name of the component, and the value is stored as a string.

A static image displaying the data structure of a Dropdown component in Inspect (Console) view.

Resources