---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Related records page template setup

# Related records page template setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 14 minutes to read  
Related records is a page template that displays records in the contextual side panel related to the content in the main workspace. These records can be searched and filtered
dynamically.
Pages are built in UI Builder using a template. For instructions on accessing UIB and selecting the Related records page template, see [Related records shared page](https://www.servicenow.com/docs/access?context=related-records-shared-page&version=brazil&pubname=brazil-customer-service-management&ft:locale=en-US).

## How to use the template {#related-records-page-uib-setup__section_rcs_4hk_qpb}

When you select the page you want to add, UI Builder asks how you want to use the template for that page.

* Use the original template: References the template in your page. When the template is updated, your page gets the changes automatically. This selection permits limited customizations but is the safest choice.
* Copy template contents: Enables you to change the property values for the components used in the page. If you copy a template, you don't get any of the changes when the template is automatically updated.
{#related-records-page-uib-setup__ul_etp_1jq_ppb}

## Renaming components {#related-records-page-uib-setup__section_iyw_nqk_qpb}

You can rename components in the content tree to suit your use case. For details about editing
the content tree, see [UI Builder quick start](https://www.servicenow.com/docs/zy~wh3VRZgHBpacOGuknTg "This quick start guides you through the process of creating your first page in UI Builder. Creating your first page is the first step in understanding how to build user interface pages for your workspace or custom portal experiences.").

## Page layout {#related-records-page-uib-setup__section_q4d_rhk_qpb}

For instructions on overriding the page layout using the Layout panel, see [Layouts in UI Builder](https://www.servicenow.com/docs/shU~0cKgl2ZRrb_9xXMBMg "Column layouts organize components on a UI Builder page. Learn how column layouts are used in UI Builder.").

## General page properties {#ariaid-title2}

Configure the properties for the body of the Related records page, which includes data source information for the records to display.

### Selecting the component in the page {#related-records-config-body__section_edb_qhm_qpb}

You can open the Config panel for the page template by selecting
Body from the content tree.

### Property definitions {#related-records-config-body__section_qbs_z14_rpb}

{#related-records-config-body__table_bdm_z14_rpb__entry__2}

| Field | Description |
|-|-|
| Table | Name of the table passed into the page and evaluated for related record's context. |
| sysid | System ID of the table passed into the page. |
| optionaltable | Optional table name to pass into the page. |
| optionalSysid | System ID of the optional table passed into the page. |
| pageSize | Not used in this version of the related record page template. |
| Label | The heading for the page. |
| Bare | Enables or disables additional padding around the page. |
| Scrollable | Enables scrolling of the page content. Choices are: * Vertical * Horizontal * Both * None {#related-records-config-body__ul_qgk_255_1qb} |
| Header Level | Heading level used to generate the header tag. Default: 1 |
| Intercept Notifications | Sets notifications to be handled by a custom component Default: false |
| Propagate Notifications | Determines if a parent page handles notifications. When set to true, all events are propagated through the parent page. Default: false |
[ ]

{#related-records-config-body__table_bdm_z14_rpb}

## Heading component properties {#ariaid-title3}

Configure the heading component used in the Related records shared page.

### Selecting the component in the page {#related-records-config-header__section_rz1_gwt_qpb}

Open the Config panel for the heading component using either of these methods:

* Select Heading 1 in the content tree.
* Select the heading component in the page.
{#related-records-config-header__ul_esm_xsk_qpb}

### Property definitions {#related-records-config-header__section_qn3_ktk_qpb}

For more information about this component, see [Heading](https://developer.servicenow.com/dev.do#!/reference/now-experience/sandiego/now-components/now-heading/overview).{#related-records-config-header__table_mm3_stk_qpb__entry__2}

| Field | Description |
|-|-|
| Label | Header title. |
| Level | Defines the HTML heading element used to render the label. Possible choices are H1-H6. Default: 1 |
| Style | Defines the font and size used to render the heading. Default: Header-secondary |
| Disable text wrap | Prevents the label from wrapping when set to true. Label text is truncated if it doesn't fit in the available space. Default: false |
| Hide bottom margin | Removes the bottom margin of the heading when set to true. Default: false |
[ ]

{#related-records-config-header__table_mm3_stk_qpb}

## Iconic
button properties {#ariaid-title4}

Configure the various iconic button components used in the Related records shared page.

### Selecting the iconic button to configure {#related-records-config-iconic-buttons__section_xp5_ywt_qpb}

You can open the Config panel for an iconic button by selecting the component in the page
or in the content tree. You can add additional components in the empty slots where
indicated. For more information about this component, see [Button iconic](https://developer.servicenow.com/dev.do#!/reference/now-experience/utah/now-components/now-button-iconic/usage).  
The Related records page uses iconic buttons to perform these actions: {#related-records-config-iconic-buttons__table_ax5_x3z_qpb__entry__3}

| Action | Icon | Content tree selection |
|-|-|-|
| Open a record list | ![Shows button iconic component in the related records page that creates a new record]() | ![Highlighted name of the iconic button in the content tree that opens a record list]() |
| Execute a search | ![Shows button iconic component in the related records page that executes a search]() | ![Highlighted name of the iconic button in the content tree that executes a search]() |
| Open the filter dropdown | ![Shows the icon used to trigger the filter dropdown]()The default trigger is the sliders icon. To replace this icon select the Add component link to choose a different icon. Your choice replaces the default icon and the placeholder. The click behavior and other functionality is automatically maintained for your custom trigger. | ![Shows the link for adding a filter trigger in the content tree]() |
| Create a new record | ![Shows button iconic component in the related records page that adds a record]() |   |
[ ]

{#related-records-config-iconic-buttons__table_ax5_x3z_qpb}

### Property definitions {#related-records-config-iconic-buttons__section_kwg_sll_qpb}

{#related-records-config-iconic-buttons__table_qvw_tll_qpb__entry__2}

| Field | Description |
|-|-|
| Icon | Defines the icon displayed in the button. |
| Variant | Sets the iconic button styles. The selections are Primary, Secondary, and Tertiary. Default: secondary |
| Size | Sets the button size. The choices are Small, Medium, and Large. Default: Medium |
| Bare | Removes the iconic button border and sets the default background to be transparent. Default: false |
| Disabled | Mutes the button color and disables user click interactions when set to true. Default: false |
| Padding | Shows or hides the padding around the iconic button. By default, an iconic button's height is based on the Size property. Setting the Padding property to Show reduces the iconic button height. This ensures that the iconic button only takes up the height required by its icon. Buttons with padding included do not align vertically with other button types. This setting is not recommended for iconic buttons that have the `bare` property set to true. |
| High contrast | Sets whether variant colors have higher contrast for visually impaired users. To use high contrast colors, set the Bare property to true. Default: false |
| Tooltip text | Text content shown inside the tooltip for this iconic button. |
| ARIA properties | An object whose keys reference a specific HTML element within the iconic button. The value of each key is an object that contains one or more ARIA properties and corresponding values. These ARIA properties are set on specified elements. An example would be: `<divid="saveChanges"tabindex="0"role="button"aria-pressed="false">Save</div>` For details about ARIA attributes, see <https://www.w3.org/TR/wai-aria-1.1/#button>. |
[ ]

{#related-records-config-iconic-buttons__table_qvw_tll_qpb}

## Input component properties {#ariaid-title5}

Configure the input component used in the Related records shared page.

### Selecting the component to configure {#related-records-config-search-input__section_edb_qhm_qpb}

You can open the Config panel for the input component using either of these methods:

* Select Input 1 in the content tree.![Shows the input component selected for configuration in the content tree]()
* Select the button iconic component in the page.
{#related-records-config-search-input__ul_esm_xsk_qpb}

### Property definitions {#related-records-config-search-input__section_a4p_b3m_qpb}

For more information about this component, see [Input](https://developer.servicenow.com/dev.do#!/reference/now-experience/sandiego/now-components/now-input/overview).{#related-records-config-search-input__table_tn1_23m_qpb__entry__2}

| Field | Description |
|-|-|
| Type | Type of input for this field. The choices are Email, Ip, Number, or Text. Default: Text |
| Label | User visible label for the input field. |
| Placeholder text | Hint text displayed in the input when the user has not yet entered a value. Placeholder text disappears when the user starts typing. |
| Identifier | Name of the input field. This name is dispatched with the field value when a user interacts with the field. |
| Value | The value of the input field. Leave this property empty unless the input field has pre-populated data. |
| Read only | Controls whether the user can modify the value in this field. Setting this value to true prevents user from modifying the value. Default: false |
| Required | Sets the field as a required field. Setting this value to true, requires the user to enter a value before submitting the form. |
| Hide required indicator | Show or hide the required field indicator. Set this property to true for forms where most fields are required, together with the Optional flag for any fields that are not required. Default: false |
| Optional | Marks the field as an optional field that isn't required to submit the form. Default: false |
| Min. value | Minimum value that a user can enter in the field. |
| Max. value | Maximum value that a user can enter in the field. |
| Min. characters | Minimum number of characters that a user can enter in the field. |
| Max. characters | Maximum number of characters that a user can enter in the field. |
| Multiple addresses allowed | Enables users to enter multiple addresses of type Email in a comma-separated list. Default: false |
| Validation pattern | Regular expression to use to validate user input. |
| Auto focus | When enabled, puts focus in the input field when the page loads. Default: false |
| Disabled | Disables the input field. The field is dimmed and not accessible to the user. |
| Invalid | When enabled, indicates that an invalid value was entered in the input field. Default: false |
| Helper content | Defines hint text that is displayed to users in a popover to help them create a query. When helper text is defined, an iconic button appears next to the field label to trigger the popover. Use helper content to display password requirements or other instructions for completing the field. |
| Alert messages | This property is not intended for use in the related records page, and the value should not be changed. This empty state message is the only message used in the input component: "No content to display. Try modifying your search text or filter to find what you're looking for." |
[ ]

{#related-records-config-search-input__table_tn1_23m_qpb}

## Dropdown filter component properties {#ariaid-title6}

Configure the filter dropdown component included in the Related records page.

### Selecting the component in the page {#related-records-config-filter__section_edb_qhm_qpb}

You can open the Config panel for the dropdown component that contains filtering options by
selecting Filters from the content tree. ![Filter component selected in the content tree]()

### Property definitions {#related-records-config-filter__section_rx5_ls1_rpb}

For more information about this component, see [Dropdown](https://developer.servicenow.com/dev.do#!/reference/now-experience/sandiego/now-components/now-dropdown/overview).
{#related-records-config-filter__table_sx5_ls1_rpb__entry__2}

| Field | Description |
|-|-|
| Variant | Sets the button styles of the dropdown trigger. The choices are: * primary * secondary * tertiary {#related-records-config-filter__ul_rbg_y51_rpb} |
| Selection | Determines what happens when the user selects an item from the dropdown. Options include: * Single: (default) The panel closes, the trigger label is updated with the label of the selected list item, and the list item is marked as selected. * Multi: The panel stays open, the trigger label is updated with the selected list item count, and the list item's selected state is toggled on or off. * None: The panel closes, the trigger label is not updated, and the list item is not marked as selected. {#related-records-config-filter__ul_fvk_dv1_rpb} |
| Size | Sets the button size of the dropdown trigger. The choices are: * Small * Medium (default) * Large {#related-records-config-filter__ul_ncj_4v1_rpb} |
| Placeholder text | Placeholder text that displays when no items are selected. If you do not specify a value, especially in the case of iconic dropdowns, provide `tooltipContent` and/or an `aria-label` through the `configAria` property. |
| Hide selected item | Hides the selected item in the dropdown trigger. Default: true |
| Placerholder icon | Placeholder icon to include in the dropdown trigger. This icon will be replaced by the icon of a selected dropdown item if the item has an icon configured. |
| Hide container | When set to true, makes the dropdown trigger border and background transparent but retains its variant style setting when using an iconic button. If the button is text or text with an icon, only set this property to true when the variant is set to secondary, tertiary, or inherit. Default: false |
| Show padding | Includes side padding on bare buttons. By default, bare buttons with labels don't have side padding. Default: true |
| Hide caret | Hides the triangular caret icon used as the default dropdown trigger. Default: true |
| Disabled | When set to true, disables the dropdown and prevents the dropdown from opening when the user interacts with it. Default: false |
| Show presence pattern | When set to true, displays the dropdown item's presence status icon with a pattern to make it distinguishable by a means other than color. Default: false |
| Items | An array of `DropdownItem` or `DropdownSection` items. |
| Opened | Automatically updates when the user opens or closes the dropdown. Default: false |
| Panel position | Properties to configure the dropdown panel. Valid keys are: * position: Array of possible positions in which to place the panel, relative to its target. Default: `["bottom-start top-start","top-start bottom-start","bottom-end top-end","top-end bottom-end"]` * constrain: Object specifying size constraints relative to the panel's target. Default: `{"minHeight":32,"minWidth":"target","maxWidth":400,"maxHeight":300}` * offset: Number of pixels to offset the panel from the trigger. {#related-records-config-filter__ul_v45_jy1_rpb} |
| Selected items | An array of IDs representing selected dropdown panel items. * Multi-select mode NOT enabled: Each time the user selects a list item, the previously selected ID is replaced with the new ID. * Multi-select mode enabled: IDs are added to or removed from the list. {#related-records-config-filter__ul_qcj_bz1_rpb} |
| ARIA properties | An object whose keys reference a specific HTML element within the dropdown component. The value of each key is an object that contains an ARIA property (or properties) and corresponding value. These ARIA properties are set on the specified element. The 'trigger' key corresponds to the inner html `<button>` that acts as the dropdown trigger. See <https://www.w3.org/TR/wai-aria-1.1/#button> for properties and accepted values. The 'panel' key corresponds to the inner html `<div>` that acts as the 'listbox'. See <https://www.w3.org/TR/wai-aria-1.1/#listbox> for properties and accepted values. |
| Tooltip text | Text shown inside the tooltip. |
| Active Route | Property inherited from the component that isn't used in this page template. |
[ ]

{#related-records-config-filter__table_sx5_ls1_rpb}

## Data set component properties {#ariaid-title7}

Configure the contents of the data set component used to show records in the Related records shared page.

### Selecting the component in the page {#related-records-config-data-set__section_edb_qhm_qpb}

You can open the Config panel for the data set component using either of these methods:

* Select Data set 1 in the content tree.![Highlights the name of the component in the content tree that contains the record cards in the Related records page]()
* Select the data set container in the page.
{#related-records-config-data-set__ul_esm_xsk_qpb}

### Property definitions {#related-records-config-data-set__section_cvf_3vs_qpb}

For more information about this component, see [Data set](https://developer.servicenow.com/dev.do#!/reference/now-experience/sandiego/shared-components/now-data-set/overview).{#related-records-config-data-set__table_hll_kvs_qpb__entry__2}

| Field | Description |
|-|-|
| Title | Sets an optional second title for the data set component. |
| Data | Data input from the data broker. |
| Show grid/list toggle | This property is part of the data set component and has no application for the dynamic related records page template. Enabling this property may cause unexpected results. |
| Default view | Choice of which default view to use: list or grid. Default: list |
| Card height (grid view) | The size of the cards displayed in the grid view. Possible sizes are: * Small * Medium * Large {#related-records-config-data-set__ul_zwp_q3h_rpb} Default: sm |
| Max. cards per row (grid view) | Maximum number of cards to display in a row in the grid view. Possible values are from 1-6. Default: 4 |
| Min. card width (grid view) | Minimum card width of 150 or greater pixels for the grid view. Default: 150 |
| Databroker State | Tracks the state of the data broker. Default: false |
| Empty state message | Message when there is no card data to display. Default: No content to display |
| Hide filter | This property is not intended for use in the dynamic related records page template, and the value should not be changed. A different filter method is in use. |
| Hide pagination | This property is not intended for use in the dynamic related records page template, and the value should not be changed. Users find records by scrolling and with the search input component. |
| Title heading level | The HTML heading level used to render the optional data set title. Possible values are from 1-6. Default: 1 |
| Title style variant | The style used to render the optional data set title. Default: header-tertiary |
| Declarative action contract | Contains the data needed for dynamic declarative action event mapping. |
[ ]

{#related-records-config-data-set__table_hll_kvs_qpb}

## Events used in the related records page {#ariaid-title8}

Select event handlers to configure the actions (events) provided in the Related records page.

### Event handlers {#related-records-config-events__section_dxy_nqz_qpb}

Event handlers work with data resources to link the page template actions to the data you
want to display to your users. Expand an event in the list and add one or more event
handlers. For information about handlers, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.") .

### Body events {#related-records-config-events__section_zkn_my5_1qb}

These events are triggered at the top level of the page.
{#related-records-config-events__table_ltz_hz5_1qb__entry__2}

| Event | Description |
|-|-|
| Data Set Navigation | User selects a card in the data set component to navigate to that record. |
| Page ready | Event inherited from the page. It's not necessary to listen to or propagate this event. |
| Page property changed | Event inherited from the page. It's not necessary to listen to or propagate this event. |
| Page viewport load completed | Event inherited from the page. It's not necessary to listen to or propagate this event. |
[ ]

{#related-records-config-events__table_ltz_hz5_1qb}

### Heading events {#related-records-config-events__section_z5c_pk4_rpb}

The heading component doesn't have configurable events.

### Button iconic events {#related-records-config-events__section_czg_zqz_qpb}

{#related-records-config-events__table_yvp_ydt_xnb__entry__2}

| Event | Description |
|-|-|
| Button iconic clicked | User selects the iconic button. |
[ ]

{#related-records-config-events__table_yvp_ydt_xnb}

### Input events {#related-records-config-events__section_tsk_r2g_rpb}

{#related-records-config-events__table_vxy_t2g_rpb__entry__2}

| Event | Description |
|-|-|
| Input invalid set | The user moves focus away from the input field. The event contains these properties: * Value of the name property. * Value of the invalid property, which is based on the values of the required and pattern properties. * Value entered in the field. * Value of the type property {#related-records-config-events__ul_pyl_pch_rpb} |
| Input value set | The user moves focus away from the field, and the value is valid. The event contains these properties: * Value of the name property. * Value entered in the field. {#related-records-config-events__ul_qwm_bdh_rpb} |
| Input input | The user enters data in the field by typing or pasting text. The system does not validate the value or update the value property. The event contains these properties: * Value of the name property. * Value entered in the field that caused the event to occur. * Current value of the field when the event occurred. {#related-records-config-events__ul_qft_3dh_rpb} |
[ ]

{#related-records-config-events__table_vxy_t2g_rpb}

### Filter events {#related-records-config-events__section_d4k_vsz_qpb}

{#related-records-config-events__table_jtt_yqb_rpb__entry__2}

| Event | Description |
|-|-|
| Dropdown opened set | The user opens or closes the dropdown list. |
| Dropdown selected items set | The user changes the selection of items in the dropdown list. The event contains these keys: * value: An array containing either a single ID or multiple IDs of the selected items. * items: An array of objects of the item or items selected from the dropdown list. {#related-records-config-events__ul_tfg_wtb_rpb} |
| Dropdown item clicked | The user selects a dropdown item. The event contains a reference to the clicked item. |
[ ]

{#related-records-config-events__table_jtt_yqb_rpb}

### Data set events {#related-records-config-events__section_ofm_cbg_rpb}

{#related-records-config-events__table_ptl_2bg_rpb__entry__2}

| Event | Description |
|-|-|
| NOW_DATA_SET_PAGINATION_BUTTON_CLICKED | The user selects the pagination button. The event contains this information: * Context information to send to the data broker. * Page number of the data displayed. * Size of the content displayed (items per page). * Type of pagination button selected (previous or next). {#related-records-config-events__ul_pzz_tcg_rpb} |
| NOW_DATA_SET_FILTER_ITEM_CLICKED | The user selects an item in the filter dropdown. The event contains this information: * Sys ID of the item selected. * Name of the option selected from the filter dropdown. {#related-records-config-events__ul_zq4_ddg_rpb} |
| NOW_DATA_SET_ACTION_SUCCEEDED | Dispatched with information about a component level action when that action is successful. The event contains this information: * Details of the action that invoked the server-side update. * Details of the model on which the server-side update was invoked. * Metadata from the declarative action success script. * Payload information from the declarative action success script. {#related-records-config-events__ul_og5_hdg_rpb} |
| NOW_DATA_SET_ACTION_FAILED | Dispatched with information about a component level action when that action fails. The event contains this information: * Details of the action that invoked the server-side update. * Details of the model on which the server-side update was invoked. * Metadata from the declarative action failed script. * Payload information from the declarative action success script. {#related-records-config-events__ul_w34_5dg_rpb} |
[ ]

{#related-records-config-events__table_ptl_2bg_rpb}

