Radio buttons component setup

task brazil Updated Sep 10, 2026 5 min read radio-buttons-component-uib-setup.md
Raw file servicenow.com

The Radio buttons component is a selectable input that lets the user choose a single option in a predefined set of mutually exclusive options.

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.

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 radio button 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.

    [Omitted image "radio-buttons-config-content-tree.png"] Alt text: Component with label displayed in the content tree

  2. Select the Radio buttons component, using one of these methods:

    • Click anywhere within the component.
    • Select the Radio buttons 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

Radio buttons component properties

Configure the appearance and features of the Radio buttons component.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Label [property]

Description

Size[size]

Button size. Either small or medium.Default: Medium

Layout[layout]

Orientation of radio buttons options. Choices are vertical or horizontal.Default: Vertical

Options[options]

Array of objects that define the options displayed by the component.Default:

JSON
{  "id": {    "type": [      "string",      "number"    ]  },  "label": {    "type": "string",    "translatable": true  },  "checked": {    "type": "boolean"  },  "readonly": {    "type": "boolean"  },  "disabled": {    "type": "boolean"  }}

Selected option[value]

The ID of the option selected by the user, or the first option passed in that has checked set to true.Default: one

Manage value[manageValue]

If set to true, overrides automatic updates to the Value property. Use the Radio buttons value set to intercept the requested change and handle it manually.Default: false

Identifier[identifier]

Name of the component control. Dispatched along with the value on user interaction.Default: radio

Disabled[disabled]

Option to mute the button color and prevent user interactions.

Read-only[readonly]

Option to prevent users from modifying the component value.

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

Label[label]

Text describing the purpose of the radio button options to the user. The text displays above the radio button options.

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.

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.

Manage invalid[manageInvalid]

If set to true, overrides automatic updates to the Invalid property. Use the Radio buttons invalid set to intercept the requested change and handle it manually.Default: false

Alert messages[messages]

Array of inline alert messages that display below the component. 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:

CSS
{    "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"}
## Radio buttons component events

Select event handlers to configure the actions (events) provided with the Radio buttons component.

The Events tab shows the events used by the Radio buttons 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 Radio buttons actions 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.

Event Description
Radio buttons value set Dispatched when the user interacts with a radio button in the group.
Radio buttons invalid set Dispatched when the Invalid property should be updated.
Search documentation
Search document titles and file paths on the brazil branch