Custom popover component setup

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

A Custom popover is a temporary panel that floats over other content to provide contextual help and information when a user selects a triggering element.

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. Create a Custom popover for a component in UI Builder using the procedures in Add popover to a UI Builder page.

  2. Define a label for your Custom popover that differentiates it from other popovers in the content tree.

    A descriptive label makes finding the correct popover easier when there are multiple popovers. For instructions on using the content tree, see Customize UI Builder pages using components.

    [Omitted image "popover-content-tree.png"] Alt text: Shows the popover in the content tree

  3. Select the popover you created by clicking its label in the content tree.

    The configuration options appear in the panel on the right.

    [Omitted image "popover-config.png"] Alt text: Shows the available properties for the custom popover component in the Config panel

Parent Topic:UIB Setup Information

Custom popover component properties

Configure the contents of your Custom popover component and its orientation relative to the trigger.

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

Label [property]

Description

Positioning to trigger[positioningToTrigger]

Sets the popover position relative to the trigger.Possible positions are:

  • Auto
  • Top
  • Right
  • Bottom
  • Left

Note: The Auto selection places the popover in the best position relative to the trigger depending on the available space and the location of the trigger on the page.

Hide tail[hideTail]

Option to hide the visual tail of the popover that points to the trigger.Default: false

Disable scroll[disableScroll]

Option to disable scrolling in the popover panel when content outgrows the available space. Set this property to true if your Popover content already contains a custom scrolling container for handling overflowed content.Default: false

Aria properties[configAria]

Configures the Aria properties for Popover. Available Aria properties are:

  • aria-braillelabel
  • aria-brailleroledescription
  • aria-colindextext
  • aria-description
  • aria-label
  • aria-placeholder
  • aria-roledescription
  • aria-rowindextext
  • aria-valuetext
## Custom popover component events

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

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

[Omitted image "popover-events.png"] Alt text: Shows the available events for the popover component

Event descriptions

Event

Description

Popover content hidden[NOW_POPOVER#CONTENT_HIDDEN]

The user closes the popover, and the content disappears.

Popover content visible[NOW_POPOVER#CONTENT_VISIBLE]

The user opens the popover, and the content renders.Payload:

  • name: content
  • label: Content
  • fieldType: json
  • typeMetadata: array
Search documentation
Search document titles and file paths on the brazil branch