--- title: Input URL component setup description: The Input URL component accepts hyperlinks as input for entering and editing web addresses.Define the value, text, and alert messages of your Input URL component with these properties.Select event handlers to configure the actions \(events\) provided with the Input URL component. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/input-url-component-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 6 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # Input URL component setup The Input URL component accepts hyperlinks as input for entering and editing web addresses. ## 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 Input URL 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 "input-url-content-tree.png"\] Alt text: Image showing Input URL component content tree 2. Select the Input URL component, using one of these methods: - Click anywhere within the component. - Select the Input URL 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) ## Input URL component properties Define the value, text, and alert messages of your Input URL component with these properties. To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type. - **Data binding**: Creates dynamic property values from multiple sources. Sources include state variables \(@state\), URL variables \(@context\), or data resource payloads \(@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).
Field Description
Size\[size\] Size of the component in either **small** or **medium**.Default: **Medium**
Disabled\[disabled\] Property that prevents the user from interacting with the field or changing its value. The field appears grayed out.
Read-only\[readonly\] Prevents the user from modifying value in the field. The input field is not in a disabled state with this setting.
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\): - **"layout":"horizontal"**: Horizontally aligns the label with the field; the label displays to the left of the field. - **"layout":"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
Value\[value\] Value of the input field. Unless the input field has pre-populated data, leave this property empty.
Manage value\[manageValue\] If set to **true**, overrides automatic updates to the **Value** property. Use the **Input url value set** event to intercept the requested change and handle it manually.Default: **false**
Identifier\[name\] Reference name for the input field dispatched with the field value when the user interacts with the field.
Placeholder text\[placeholder\] Hint text displayed in the input field before the user has entered a value.
Min characters\[minlength\] Minimum number of characters allowed for the input field.
Max characters\[maxlength\] Maximum number of characters allowed for the input field.
Text align\[align\] Alignment of the text within the input field.
Label \[property\] Description
Label\[label\] Text in the label.
Wrap label\[wrapLabel\] If the label doesn't fit on one line, wraps the label.
Required\[required\] Indicates that the user must enter a value in the input field before submitting the form.
Hide required indicator\[hideRequiredIndicator\] Hides the required field indicator. Use this for forms in which most fields are required, together with the **Optional** flag for any fields that aren't required.
Optional\[optional\] Adds a visual indicator marking a field that the user doesn't have to complete before submitting the form.
Helper content\[helperContent\] Displays an iconic button with a popover next to the field label that displays additional hint text to the user. An example is URL requirements or other instructions for completing the field.
Label \[property\] Description
Invalid\[invalid\] Visually marks a field containing an invalid value.
Manage invalid\[manageInvalid\] If set to **true**, overrides automatic updates to the **Invalid** property. Use the **Input url invalid set** event to intercept the requested change and handle it manually.Default: **false**
Validation pattern\[pattern\] ​Provides a regular expression for evaluating user input.
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\] A JSON field for configuring ARIA properties, such as **aria-braillelabel**.
## Input URL component events Select event handlers to configure the actions \(events\) provided with the Input URL component. The Events tab shows the events used by the Input URL component. To view the available events, select **+ Add event mapping**. Select the event in the list to add one or more event handlers. ### Event handlers Event handlers work with data resources to link the Input URL events to the data you want to display to your users. Select the event in the list to add one or more event handlers. For instructions on adding event handlers to an event, see [Configure an event handler](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/event-handler.md). ### Event descriptions
Event Description
Input url invalid set Dispatched when the user moves focus away from the field and the URL is invalidPayload: - `name`: String. Value of the **name** property. - `value`: Boolean. Value of the **invalid** property, which is based on the values of the **required** and **pattern** properties. - `fieldValue`: String. Value entered in the field.
Input url value set Dispatched when the user moves focus away from the field and the URL is validPayload: - `name`: String. Value of the **name** property. - `value`: String. Value entered in the field.
Input url input Dispatched when the user enters data in the field by typing or pasting text. The system does not validate the value or update the **value** property.Payload: - `name`: String. Value of the **name** property. - `data`: String. Value entered in the field that caused the event to fire. - `fieldValue`: String. Current value of the field when the event fired.