---
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


---

# Confirm modal setup

# Confirm modal setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
Use a Confirm modal to verify a user's actions. This modal appears when a user takes an action or makes a choice that is typically irreversible and is intended to prevent the user
from making an error.

## Before you begin

This task assumes you have placed a component on the
page and are ready to select and configure a modal for that component.

Role required: admin or ui_builder_admin

## Procedure

1. In the UI Builder content pane, select the component from which the modal will open.
2. Add the modal to the component.  
   For instructions, see [Add modal to component](https://www.servicenow.com/docs/~RHzmVlZ3brI3XXLnBWDMA "Learn how to add a modal in UI Builder. A modal is a window that appears when you click a component. For example, a modal might display when a delete button component is clicked, prompting the user to confirm deleting a record.").
3. Select the Confirm modal type from the panel that appears.  

   The template for the Confirm modal appears on the canvas.
{#confirm-modal-uib-setup__steps_add-modal-to-component}

## Confirm modal properties {#ariaid-title2}

Using the modal template for reference, configure the properties that control the
behavior and appearance of the Confirm
modal.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#confirm-modal-properties__choices_4jq_bp0_csl}  
{#confirm-modal-properties__table_r5c_5s1_4vb__entry__2}

| Label \[property\] | Description |
|-|-|
| Header \[headerLabel\] | The modal title. |
| Content \[content\] | Message text to display in the modal. |
| Primary button label \[primaryButtonLabel\] | Label describing the action of the primary button in the modal footer. |
| Secondary button label \[secondaryButtonLabel\] | Label describing the action of the secondary button in the modal footer. |
| Modal size \[size\] | Size of the modal. The options are: * Small * Medium (default) * Large * Fullscreen {#confirm-modal-properties__ul_k3s_3zh_xvb} |
| Prevent Default Primary Button Access \[preventDefaultPrimaryAction\] | Prevents the default behavior of the primary (affirmative) button from closing the modal. Default: false |
| Prevent Default Secondary Button Access \[preventDefaultSecondaryAction\] | Prevents the default behavior of the secondary (negative) button from closing the modal. Default: false |
| Defer modal content loading \[defer\] | When set to false, connects the modal content when the page loads. Default: true |
[ ]

{#confirm-modal-properties__table_r5c_5s1_4vb}

## Confirm modal events {#ariaid-title3}

Select event handlers to configure the actions (events) provided with the Confirm
modal.
The Events tab shows the events used by the Confirm modal 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 {#confirm-modal-events__section_a54_5jj_twb}

Event handlers work with data resources to link the Confirm modal 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](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.").

### Event descriptions {#confirm-modal-events__section_j3r_cgl_wwb}

{#confirm-modal-events__table_gzn_s1b_4vb__entry__2}

| Event | Description |
|-|-|
| Primary button clicked | The user selects the primary (positive) button. |
| Secondary button clicked | The user selects the secondary (negative) button. |
| Modal closed | The user closes the modal. The payload contains `modalId`, the ID of the modal being closed. |
| Modal opened | The user opens the modal. The payload contains `modalId`, the ID of the modal being opened. |
[ ]

{#confirm-modal-events__table_gzn_s1b_4vb}

