--- title: Select component setup description: The Select component is a form control that provides dropdown options for user selection.Configure the appearance and features of the Select component.Select event handlers to configure the actions \(events\) provided with the Select component. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/select-component-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 7 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Select component setup The Select component is a form control that provides dropdown options for user selection. ## Before you begin This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-components.md). **Note:** This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component. Role required: admin or ui\_builder\_admin ## Procedure 1. Define a label for your Select component that differentiates it from other components in the content tree. A label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/work-pages.md). \[Omitted image "select-content-tree.png"\] Alt text: Component with label displayed in the content tree 2. Select the Select component, using one of these methods: - Click anywhere within the component. - Select the Select label you created for your component in the content tree. The property fields appear in the **Config** tab in the setup panel on the right. **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## Select component properties Configure the appearance and features of the Select component. To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type. - **Data binding**: Enables you to create dynamic property values derived from multiple sources, such as state variables \(@state\) in the page, URL variables \(@context\), or payloads from a data resource \(@data\). For details, see [Add and configure data resources to a page](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md). - **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
| Label \[property\] | Description |
|---|---|
| Size\[size\] | Choose the **small** \(sm\) or **medium** \(md\) size.Default: **medium** |
| Search behavior\[search\] | Controls how to filter selectable items as the user types into the integrated search input. Choose from the following options.- **None** - Hides integrated search input and prevents filtering - **Managed** - Filter items manually - **Initial** - Filter items whose label or sublabel begin with the input value \(case insensitive\) - **contains**- Filter items whose label or sublabel contain the input value \(case insensitive\) |
| Disabled | Option to disable the selection dropdown and prevent user interactions. The color of the component is muted to indicate that it's unavailable. |
| Auto-focus\[autofocus\] | Option to place focus inside the component when the page loads. |
| Field layout configuration\[fieldLayout\] | Determines whether the labels, field, and slotted content are arranged vertically or horizontally. This property also determines the respective proportions of each element in a horizontal container. The field layout has two configuration properties: - **layout** \(string\): - **horizontal**: Horizontally aligns the label with the field; the label displays to the left of the field. - **vertical** \(default\): Vertically aligns the label with the field; the label displays above the field. - **columns** \(array\): If the layout is horizontal, the component uses the **columns** array to set the grid template column width for the containers. |
| Label \[property\] | Description |
|---|---|
| List items\[items\] | An array of dropdown list items and/or dropdown list sections that the user can select from. |
| Selected item\[selectedItem\] | The ID of the selected item from the list items array. |
| Item size constraints\[itemsListConstrain\] | Object of sizing constraints properties to enforce on the item list. Set the following sizing properties.- **width** - Default width of the item in pixels. Specify the string `target` to set the item width to the Select component width. - **minWidth** - Minimum width of the item in pixels. Specify the string `target` to set the item width to the Select component width. - **maxWidth** - Maximum width of the item in pixels. Specify the string `target` to set the item width to the Select component width. - **height** - Default height of the item in pixels - **minHeight** - Minimum height of the item in pixels - **maxHeight** - Maximum height of the item in pixels |
| Label \[property\] | Description |
|---|---|
| Label\[label\] | Text describing the purpose of the select input to the user. The text displays above the list component. |
| Wrap label\[wrapLabel\] | If the label doesn't fit on one line, wraps the label. |
| Required\[required\] | Option to require users to enter a component value before they can complete the form. |
| Hide required indicator\[hideRequiredIndicator\] | Option to visually show or hide the required indicator for the component. Use this for forms where most components are required, along with the **Optional** property to highlight the components that are not required. |
| Optional\[optional\] | Option to visually indicate that the user does not need to complete the component before completing the form. Use this for forms where most components are required, along with the **Hide required indicator** property to highlight the components that are not required. |
| Helper text\[helperContent\] | Instructions to guide user interaction with the component such as password requirements. When defined, an iconic button with a popover appears next to the field label to display the text. Use plain text to allow the text to be translatable. |
| Read onlyreadonly | Option to make the field read-only to prevent users from modifying the value.Default: **false** |
| Label \[property\] | Description |
|---|---|
| Invalid\[invalid\] | Option to visually indicate that the component is in an incorrect state. Use this for forms that validate input to guide users to correct invalid component values. |
| Alert messages\[messages\] | Array of alert messages that display below the field. The following list describes each object's properties:- `content`: The text of the alert message. - `status`: The type of alert to display. - `icon`: Icon to display at the start of the alert message. Default: ``` { "name": "content", "label": "Content", "fieldType": "string", "translatable": true }, { "name": "status", "label": "Status", "fieldType": "choice", "typeMetadata": { "choices": [ { "label": "Critical", "value": "critical" }, { "label": "Warning", "value": "warning" }, { "label": "Positive", "value": "positive" }, { "label": "Info", "value": "info" }, { "label": "Suggestion", "value": "suggestion" } ] } }, { "name": "icon", "label": "Icon", "fieldType": "icon" } ``` |
| Label \[property\] | Description |
|---|---|
| ARIA properties\[configAria\] | An object whose keys reference a specific HTML element within the dropdown. The value of each key is an object that contains an ARIA property and corresponding value. These ARIA properties are set on the specified element. The `trigger` key corresponds to the inner HTML ` |
| Landmark\[landmark\] | Enable the Landmark Focus keyboard shortcut to focus on this select. |