Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Add a viewport modal to your experience

Add a viewport within a modal in your experience.

Before you begin

Role required: ui_builder_admin

About this task

Use viewport modals to embed subpages or other experiences within a modal in your parent page or experience. Viewport modals can be opened via events or scripts. Viewport modals are limited to one subroute per viewport modal. You can create additional viewport modals for extra routes.

Note: Legacy viewport modals cannot be upgraded and must be recreated to take advantage of the new functionality.

Procedure

  1. Navigate to All > Now Experience Framework > UI Builder.

  2. Open an experience to work in or create an experience by selecting Create > Experience.

    See Configure how users interact with your applications in UI Builder for more information.

  3. Open or create a page.

    If you open an existing page, ensure you are in the same scope as the original page. If not, change the scope before you start editing the page. Application scoping protects applications by identifying and restricting access to application files and data. Administrators set the scope to specify what parts of an application are accessible to other applications. Application scope protects data and application files. See Learn about security and roles for more information on application scope.

  4. Select + Add content in the content tree.

  5. Select a Single column layout.

  6. Select + next to Modals in the content tree.

  7. Select Viewport Modal in the list.

Image omitted: viewport-modal-add.png
Pointer selecting the viewport modal in the modal list.
A viewport model appears above your page.
  1. Click Save.

  2. Select the viewport in the content tree.

Image omitted: viewport-modal-select.png
Arrow pointing at the viewport added in the previous step.
  1. Select + Add next to Page collections in the configure tab.
Image omitted: viewport-modal-edit-content.png
Arrow pointing to + Add in the Configure panel
  1. Select a page collection or create a new one.

    For more information, see Create a page collection across multiple UI pages.

Image omitted: page-collection-list.png
Page collection selection screen with option to create a collection.
  1. Click Add.

  2. Click Save.

  3. Add a component that opens the viewport modal.

    The following example uses a button to open the viewport modal.

Image omitted: viewport-modal-button.png
Arrow pointing to a button component used to open a viewport modal.
  1. Select the Events tab.

  2. Select + Add event handler.

Image omitted: button-add-event-handler.png
Arrow pointing to + Add event handler in the events tab of a button component.
  1. Select Open or close modal dialog.

  2. Enable Open modal dialog.

  3. Select the viewport modal that you created in the Modal dropdown.

Image omitted: viewport-modal-open-dialog.png
Configure the event handler for your viewport modal.
The **Viewport ID** auto populates.
  1. Select Add.

  2. Select Save.

  3. View and test your page by selecting

Image omitted: preview-button.png
Preview button that opens the page variant..

Parent Topic:Extend your UI experience with viewport components