Simple timer component setup

task brazil Updated Sep 10, 2026 3 min read simple-timer-component-uib-setup.md
Raw file servicenow.com

The Simple timer component displays elapsed time with an optional leading icon and configurable start and end times.

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: workspace_admin or ui_builder_admin

Procedure

  1. Define a label for Simple timer that differentiates it from other components in the content tree.

    A descriptive 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 "simple-timer-content-tree.png"] Alt text: Simple timer component in the UI Builder content tree.

  2. Select the Simple timer component using one of these methods:

    • Click anywhere within the component on the page.
    • Select the label you created for your component in the content tree. The configuration options appear in the panel on the right.

    [Omitted image "simple-timer-config.png"] Alt text: Simple timer component in the UI Builder configuration panel.

Parent Topic:UIB Setup Information

Simple timer component properties

Configure the properties for Simple timer.

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

Label [property]

Description

Start time[startTime]

Sets the exact date and time when the timer begins. Include both the date and time in the value. You don't need to add a comma or specify the weekday, but you can if you prefer.Example: November 18 2025 10:00 AM or Tuesday, November 18, 2025 10:00 AM

End time[endTime]

Sets the exact date and time when the timer ends. Include both the date and time in the value. You don't need to add a comma or specify the weekday, but you can if you prefer.Example: November 18 2025 10:00 AM or Tuesday, November 18, 2025 10:00 AM

Minimum resolution[minResolution]

Sets the timer's smallest counting unit in either seconds or minutes.Default: Seconds

Timer size[size]

Defines the timer's display size in either small (sm) or medium (md).Default: sm

Timer icon[icon]

Displays an icon to the left of the timer text.

ARIA properties[configAria]

Configures ARIA properties.

## Simple timer component events

Select event handlers to configure the events provided with the Simple timer component. Event handlers work with data resources to link the Simple timer actions to the data you want to display to your users.

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

Event

Description

Timer ended[SN_TIMER#TIMER_ENDED]

Action that is dispatched when the timer stops counting.Payload:

JSON
{              "name": "value",              "label": "Value",              "fieldType": "string",              "typeMetadata": {                "schema": {                  "type": "string"                }              }            }
Search documentation
Search document titles and file paths on the brazil branch