Dropdown Component

 

Estimated Reading Time:  12 minutes

Overview

The Dropdown component enables your end-user End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product. 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.

About the Configuration Window

TIP  To learn more about general component settings and those that display when a component is associated with Data Models, view our General Component Settings article.

Display Panel

A static image dispaying the Dropdown component's Display settings.

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.

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.

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.

Hide Label

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

By default, the Hide Label toggle is set to (OFF).

Read Only View

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

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

Disable User Input

When set to (ON), end-users can’t 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, the Disable User Input toggle is set to (OFF).

Hide Field

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

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

Adding a Dropdown Component

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 A Property ID is the unique field ID used by Unqork to track and link components in your module. field, enter educationHistory.
3. In the Label Text Label Text conveys what the input component is and what information it displays. Enter the purpose of the corresponding component or field. 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. To the left of the component's configuration window, click Data Icon Data.
5. In the Values  table, enter the following:
 

Option Label

Option Value

1

Less than High School

lessThanHighSchool

2

High School/GED

highSchoolGED

3

Associate's Degree

associatesDegree

4

Bachelor's Degree

bachelorsDegree

5

Master's Degree

mastersDegree

6

Higher

higher

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

6. Click Validation Icon Validation.
7. Set Required to Toggle On (ON).
8. Click Save & Close.

Your Dropdown component looks like the following in Express View Express View is how your end-user views you application. Express View also lets you preview your applications to test your configuration and view the styling. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View.:

Structure of a Dropdown Component's Data

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