Checklist component setup

task brazil Updated Sep 10, 2026 6 min read checklist-component-setup.md
Raw file servicenow.com

The Checklist component shows items with a check box to mark them as completed or pending.

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 Checklist 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 "checklist-label.png"] Alt text: Checklist component in tree.

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

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

    [Omitted image "checklist-config-panel.png"] Alt text: Shows the config panel for Checklist properties

Parent Topic:UIB Setup Information

Checklist component properties

Configure the Checklist component with these properties.

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

Label [property]

Description

Size[size]

Size of the checklist.Options are:

  • Small: Sets the size at 20 px
  • Medium: Sets the size at 24 px

Default: Medium

Prefixes[prefixType]

Determines if checkboxes will be ordered, and provides options for numeric or alphabetic prefixes.Options are:

  • None
  • Numeric
  • Alphabetic

Default: None

Checkbox items[checklistData]

JSON object with the configuration of the items to show in the checklist.Object properties:

  • itemId: Unique identifier for the checklist item
  • checked: To mark the checklist item as selected when the list loads, set to true
  • required: To mark the checklist item as required, set to true. Enabling this property adds a * next to the item.
  • disabled: To disable the checklist item, set to true. Disabled items are not selectable.
  • readonly: To mark the checklist item as read-only, set to true. Read-only items are not selectable.
  • invalid: To mark the checklist item as invalid, set to true.
  • order: The order of the item in the checklist.
  • label: Label to display for the checklist item.
  • hasLink: To identify that the checklist item has a link, set to true. Requires link configuration.
  • errorMsgForLabel: Error message to display when unable to display the checklist item's label.
  • link: Configuration of link properties.
    • url: Link URL.
    • text: Link text.
    • errorMsgForLink: Error message to display when the link URL has issues.

Default:

JSON
[    {        "itemId": "checkbox_0",        "checked": false,        "required": true,        "order": 0,        "label": "this is item 0",        "hasLink": true,        "link": {            "url": "javascript:void(0)",            "text": "sample link 0"        }    },    {        "itemId": "checkbox_1",        "checked": false,        "order": 1,        "label": "this is item 1",        "hasLink": true,        "link": {            "url": "javascript:void(0)",            "text": "sample link 1"        }    },    {        "itemId": "checkbox_2",        "checked": false,        "order": 2,        "label": "this is item 2",        "hasLink": true,        "link": {            "url": "javascript:void(0)",            "text": "sample link 2"        }    },    {        "itemId": "checkbox_3",        "checked": false,        "order": 3,        "label": "this is item 3",        "hasLink": true,        "link": {            "url": "javascript:void(0)",            "text": "sample link 3"        }    }]

Open links in a new window[opensWindow]

To open links in a new window or tab (depending on user's browser configuration), set to true.Default: false

Allow editing[allowEditing]

To enable the end user to edit the checklist, set to true. Users can add, edit, or delete checklist items and links. Users can also reorder items in the list by dragging and dropping them. Default: false

Show edit mode[isEditMode]

Available when Allow editing is set to true. To load the checklist directly in edit mode, set to true.Default: false

Disable add link[disableAddLink]

Available when Allow editing is set to true. To disable the Add link button, set to true.Default: false

Checklist Edit options[checklistEditOptions]

Available when Allow editing is set to true. JSON object containing field-interactivity options to show in the edit mode. Each configuration is a boolean property, enabling any adds its corresponding toggle under the checklist item.Default:

JSON
{    "required": false,    "disabled": false,    "invalid": false,    "readonly": false}

 

 

Empty state title[emptyStateTitle]

Primary text to display in the empty state message.

Empty state message[emptyStateMsg]

Secondary text to display in the empty state message.

Show loading spinner[showLoadingSpinner]

Displays a loading spinner to an end user to indicate that the system is loading data or saving the users change's to the checklist.

## Checklist component events

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

The Events tab shows the events used by the Checklist 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 Checklist 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

Item link clicked

Link text is clicked for any checklist item. The event payload contains the following:- itemId (string)

  • link
    • text (string)
    • url (string)

Item clicked

A checklist item is checked or unchecked. The event payload contains the following:- checked (true/false)

  • itemID (string)

Edit clicked

User selects the Edit action to put the checklist into edit mode

Edit cancelled

User selects the Cancel action to leave edit mode

Save clicked

User selects the Save action in edit mode to save changes to the checklist.Payload:

  • actionType
  • data
Checklist event handler script

The following script can serve as the event handler for both the Item link clicked and Item clicked events:

JavaScript
/** * @param {params} params * @param {api} params.api * @param {any} params.event * @param {any} params.imports * @param {ApiHelpers} params.helpers */function handler({    api,    event,    helpers,    imports}) {    console.log(event.payload);    // const {itemId, checked} = event.payload;    api.setState('payload', JSON.stringify(event.payload));}
Search documentation
Search document titles and file paths on the brazil branch