> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Create actions that control modals and tabbed containers

> Create Sigma actions that open or close modals and select tabs in tabbed containers for seamless content transitions.

Workbooks support actions that change the state of modals and tabbed containers, enabling seamless transitions between related content views.

This document explains how to create actions that open modals, close modals, or select a specific tab in a tabbed container. For more information about actions in Sigma, see [Intro to actions](/docs/intro-to-actions).

## User requirements

The following requirements apply to users who configure actions. Users who access and interact with a workbook can typically trigger all existing actions within it. Any restrictions are noted in this document.

The ability to configure actions requires the following:

* You must be assigned an [account type](/docs/account-type-and-license-overview) with the **Full explore** or **Create, edit, and publish workbooks** permission enabled.

* You must be the workbook owner or be granted **Can explore**<sup>1</sup> or **Can edit** [access to the workbook](/docs/folder-and-document-permissions).

<p class="footnote">
  1

  If you’re granted <strong>Can explore</strong> access to the workbook, you can configure actions in custom, saved, and shared views. Actions saved to views do not apply to the workbook’s published version.
</p>

## Open or close a modal

Create an action that opens or closes a modal in the current workbook. For more details about modals, see [Add a modal to a workbook](/docs/use-modals-to-create-focused-content-views).

1. Open the draft, a custom view, or a saved view of a workbook. If you open a saved view, go to the workbook header and click <img src="https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/custom-view.svg" alt="" /> **Customize this view** to enable changes.

2. Select the trigger element (the element users must interact with to initiate the action).

   If the trigger element is a plugin, select the name of the plugin configuration object under **Custom plugin**. In your code editor, refresh your plugin, then test the action in the workbook. For more information, see [Configure plugins to use as trigger elements](/docs/configure-plugins-to-work-with-actions#configure-plugins-to-use-as-trigger-elements).

3. In the editor panel, open the **Actions** tab.

4. [Create a new sequence](/docs/create-and-manage-action-sequences), or locate an existing sequence that you want to modify.

5. Select the default action (if creating a new sequence), or click <img src="https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/button-add.svg" alt="" /> **Add action** to add a new action to the sequence.

6. In the modal, configure the required fields to define the response:

<ul>
  <li>
    |                  |                                                                                                                                                                                                                                             |
    | :--------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
    | **Action**       | Select **Open modal** or **Close modal**.                                                                                                                                                                                                   |
    | **Select modal** | <p>If configuring an **Open modal** action, select the modal to open, or choose **New modal**.</p><p>The **Close modal** action doesn't require modal selection because it must be configured on an element within the modal it closes.</p> |
  </li>
</ul>

## Select tab

Create an action to display a specific tab in a [tabbed container](/docs/use-tabbed-containers-to-organize-workbook-content)  element.

1. Open the draft, a custom view, or a saved view of a workbook. If you open a saved view, go to the workbook header and click <img src="https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/custom-view.svg" alt="" /> **Customize this view** to enable changes.

2. Select the trigger element (the element users must interact with to initiate the action).

   If the trigger element is a plugin, select the name of the plugin configuration object under **Custom plugin**. In your code editor, refresh your plugin, then test the action in the workbook. For more information, see [Configure plugins to use as trigger elements](/docs/configure-plugins-to-work-with-actions#configure-plugins-to-use-as-trigger-elements).

3. In the editor panel, open the **Actions** tab.

4. [Create a new sequence](/docs/create-and-manage-action-sequences), or locate an existing sequence that you want to modify.

5. Select the default action (if creating a new sequence), or click <img src="https://sigma-docs-screenshots.s3.us-west-2.amazonaws.com/Icons/button-add.svg" alt="" /> **Add action** to add a new action to the sequence.

6. In the modal, configure the required fields to define the response:

<ul>
  <li>
    |                      |                                             |
    | :------------------- | :------------------------------------------ |
    | **Action**           | Select **Select tab**.                      |
    | **Tabbed container** | Select a tabbed container in this workbook. |
    | **Tab**              | Select the tab to display.                  |
  </li>
</ul>