--- title: iframe modal setup description: The iframe modal displays content from existing iframe content fetched from a URL or from data.Using the modal template for reference, configure the properties that control the behavior and appearance of the iframe modal.Select event handlers to configure the actions \(events\) provided with the iframe modal. locale: en-US canonical_url: https://www.servicenow.com/docs/r/application-development/ui-builder/iframe-modal-uib-setup.html release: brazil product: UI Builder classification: ui-builder topic_type: task last_updated: "2026-09-10" reading_time_minutes: 2 breadcrumb: [UIB Setup Information, UI Builder, Builder library, Developing your application, Classic app development, Building applications] --- # iframe modal setup The iframe modal displays content from existing iframe content fetched from a URL or from data. ## 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 ## 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/modals-uib.md). 3. Select the iframe modal type from the panel that appears. \[Omitted image "select-iframe-modal.png"\] Alt text: Modal selection panel with the iframe modal selected The template for the iframe modal appears on the canvas. \[Omitted image "iframe-modal-template.png"\] Alt text: Shows the template that appears when configuring the iframe modal **Parent Topic:**[UIB Setup Information](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/uib-setup-information.md) ## iFrame modal properties Using the modal template for reference, configure the properties that control the behavior and appearance of the iframe 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/add-data-resources.md). - **Scripting**: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/state-parameters.md).
Label \[property\] Description
Header\[headerLabel\] The modal title or label.
Source url\[src\] URL to load into the iframe.
Data\[params\] The params or initial data to embed in the iframe modal.
Modal size\[size\] Size of the modal. The options are:- Small - Medium \(default\) - Large - Fullscreen
Disable sandbox\[disableSandbox\] Lifts the following restrictions with these settings:- **false**: `allow-scripts` - **true** - allow-forms - allow-modals - allow-popups - allow-presentation - allow-same-origin - allow-scripts - allow-downloads Default: **false**
Defer modal content loading\[defer\] When set to false, connects the modal content when the page loads.Default: **true**
## iFrame modal events Select event handlers to configure the actions \(events\) provided with the iframe modal. The Events tab shows the events used by the modal. 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 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/application-development/ui-builder/event-handler.md). ### Event descriptions
Event Description
Canvas iframe Closed Notifies the calling page that the iframe has finished rendering.
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.