Note: Nintex Apps is in beta release.

Modals

A modal—sometimes called a popup—is a dialog box that overlays a page. Modals are often used to show a subset of components related to a particular process—or show secondary, related data—without forcing the user to leave the page.

Using Modals

Modals can be created in the Surfaces area of the Index. Once a modal is created, it can be selected from the Index. Once selected, drag and drop components into the modal to configure its appearance. To display a modal to the end user, create an action flow with the Show modal action. Modals can be reused across more than one action flow.

 

Manage modals

To add a modal from within the Surfaces area:

  1. In the Surfaces area, click the plus icon.

  2. Click Modal. The modal element appears in the canvas.

 

To add a modal from while building a Show modal action:

  1. In the Select a modal property, click Create new modal.

  2. Provide a modal name, which is used as the Title property.

  3. Click Create to return to the action flow or Create and edit to begin editing the modal

 

To delete a modal:

  1. In the Surfaces area, click the modal you wish to remove.

  2. In the canvas, click More Options on the modal's component toolbar.

 

To call a modal from the Show modal action, select it within the action's properties. Modals can be reused across action flows—but ensure all necessary context variables are configured properly.

 

To edit the components within a modal, drag and drop them into either the primary "modal" area or the "footer" area. The modal area is commonly used for arranging the main components of the modal's intended process, while the footer is commonly used for confirm/cancel buttons, alongside other secondary elements.

Context considerations

As a surface, this element serves as a context container, filtering and displaying context-specific data. Rather than hardcoding values, you'll define one or more context variables—named placeholders for fields like record Ids—to identify which data should be shown. These context variables are assigned each time an action flow calls this surface, allowing you to reuse the same panel, modal, or drawer for multiple scenarios simply by passing in different values each time it's opened.

Context variables must be set explicitly in each action that opens a surface.

For more information, see Context

Best Practices

  • Bear in mind that a modal is a limited space, a temporary "working area." Use modals for specific, concentrated tasks that the user needs to complete before returning to a workflow on the underlying page.
  • Modals are commonly used as row actions within the Table component—utilizing context conditions to display related data.
  • To prevent a modal from accidentally closing when a user clicks elsewhere, consider enabling the Restrict closing the modal property. When enabled, the only way to close a modal is to click the X button within it (or leave the page entirely).

Properties

Component properties