Display Value Block component setup

task brazil Updated Sep 10, 2026 6 min read display-value-block-component-uib-setup.md
Raw file servicenow.com

The Display Value Block component displays view-only record content to a user in portal pages and applications, using a configurable accordion.

Before you begin

This component contains a preset configuration. Presets automatically configure properties and event handlers for a component, making the component ready to work when you add it to a page. You can apply one preset to a single instance of a component on a page. For more information, see Automatically configure components using presets.

A preset connects to a controller, which acts as a data resource for the component. Controllers provide the configuration data and event binding the component needs to function in your experience. For more information see Bind data to UI pages using controllers.

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 Display Value Block 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 "display-value-block-config-content-tree.png"] Alt text: Component with label displayed in the content tree

  2. Select the Display Value Block component, using one of these methods:

    • Click anywhere within the component.
    • Select the Display Value Block label you created for your component in the content tree. The preset selection panel appears in the pane on the right.

    [Omitted image "display-value-block-presets.png"] Alt text: Shows the list of presets for display value block and the selection for manual configuration

  3. Select either None to configure the component properties manually, or select one of the available presets to use pre-configured properties and events for the component.

    When you select the first preset on a page, a configuration panel appears with instructions for configuring the required controller for that preset. For more information, see Automatically configure components using presets

    [Omitted image "display-value-block-preset-config.png"] Alt text: Shows the preset configuration panel that connects the preset to the required controller

  4. Supply the data that connects a preset to its controller and select Use.

    UI Builder automatically configures any other presets in the page to use the same controller with the same configuration. For more information, see Add a controller.

Parent Topic:UIB Setup Information

Display Value Block component properties

Properties in the Display Value Block component have preset configuration values. You can accept these values or override them manually.

Presets are intended to suit a specific use case. However, you can override a property that has a preset value with a custom configuration if necessary for your design. For details on overriding and resetting presets, see Override a component preset.

Important: Preset values that you override aren't updated automatically when you upgrade the instance.

Available presets

  • Record secondary values

    This preset displays relevant, read-only fields that provide the necessary context for users to perform their tasks. This preset requires the Record controller.

    Properties included in this preset are:

    • Items
    • Layout type
    • Hide labels
    • Display inline
    • Max lines per value
    • Rows before toggle shown

Properties

Label [property]

Description

Title[table]

Title of the component displayed at top-left in a header tag.

Items[items]

Array of label-value items. Labels can have one or more values. Values can be rendered as a string, text link, or highlighted value.

Layout type[layoutType]

Property to position label-value items in relation to each other. The possible choices are:- vertical: Displays label-value pairs stacked

  • horizontal: Displays label-value pairs side-by-side.
  • horizontal-equal: Displays label-value pairs side-by-side, expanding to equally fill its parent container.

Delimiter[delimiter]

Character displayed as a delimiter between label value pairs.

Hide labels[hideLabels]

Option to hide labels. If this property is set to true, the displayInline property is hidden.Default: false

Display inline[displayInline]

Option to display labels and values side-by-side rather than stacked. This property is not available if the hideLabels property is set to true.Default: false

Max lines per value[maxLinesPerValue]

Maximum number of lines for a text type value before it truncates. To prevent truncation, enter a value of 0.

Rows before toggle shown[rowsBeforeToggleShown]

Number of rows to render on the screen. If the number of actual rows is greater than the value of this property, excess rows are hidden.

### Manual configuration

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

Display Value Block component events

If you have chosen a preset containing events, data handlers for those events are pre-selected by the controller, and no manual configuration is required. If the component has events that aren't included in the preset, you must add data handlers manually to configure those events.

The Events tab shows the events used by the Display Value Block component. Events with presets are marked with the Preset badge. To show events that don't have preset configurations, select + Add event mapping. If the component has only one event, and that event doesn't have a preset, the event is displayed, ready for configuration.

[Omitted image "display-value-block-events.png"] Alt text: Shows a single event for the display value block that doesn't have a preset. The control for adding an event handler is already displayed

Event handlers

Event handlers work with data resources to link the Display Value Block 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.

For instruction on how to add and delete event handlers with presets and how to disable an event, see Configure an event handler and Disable preset event mappings.

Preset events

  • Record secondary values

    This preset doesn't have any events.

Event descriptions

Event

Description

Link Clicked

User selects an item of type text-link. The action contains all the data for the item representing the text-link selected.Payload contains item: Item representing the clicked text-link

  • label
  • value
Search documentation
Search document titles and file paths on the brazil branch