Actions on dashboards

You can add buttons to dashboards to perform actions like creating or updating records, and combine them with dashboard filter.

Dashboard with filter, action button, and detail card view

Create an action

To add an action button to a dashboard, you’ll first need to create an action on a model. See Model actions.

Add an action button to a dashboard

Once you created an action, you can add a button to a dashboard to perform that action:

  1. Visit a dashboard page and click the pencil icon to start editing the dashboard.
  2. Click on the box with a mouse pointer to add an action.

    Metabase will add an action button to the dashboard grid, and open a sidebar with button settings:

    • Button text: A label explaining what the button does, e.g., “Add record”.
    • Button variant: How a button looks. You can select from a variety of handsome buttons:

      Button types

  3. Pick an action to connect to the button.
  4. For every field in the action, select whether people should supply the value themselves, or whether the action should use the value from the dashboard filter. See Connecting an action to a dashboard filter.
  5. Click Done, and Save the dashboard.

People viewing the dashboard will be able to click the button and perform your chosen action:

Button form

You can add as many buttons as you want, and wire them up to one or more filters.

Connect an action to a dashboard filter

When people click the action button on a dashboard, they’ll be prompted to input values in the fields defined by that action. Alternatively, you can pre-fill some action fields with the values selected for a dashboard filter. Passing filter values to action fields is useful when the dashboard filters by an ID, and you want the action button to update the record associated with that ID.

To connect an action field to a filter on a dashboard:

  1. On a dashboard with an action button, click the pencil icon edit the dashboard.
  2. Add a filter to a dashboard, connect the filter to one or more cards, and click Done in the bottom of the sidebar.
  3. Add an action button to the dashboard (if you haven’t already).
  4. Hover over the action button and click on the gear icon, and select Change action.
  5. Click the field’s dropdown to select where the action should get its value, and pick a filter to connect to (filters will be referenced in the dropdown by their name):

    Wiring up an action button to a dashboard filter

Actions are unavailable for public dashboards and dashboards in guest embeds

While you can add actions to dashboards and use them in your Metabase, actions won’t work on dashboards accessed via public links, or dashboards in guest embeds.

If you want people outside of your Metabase to use an action, you can create a public form for an action, or expose actions via modular embedding with SSO or full app embedding.

Further reading

Read docs for other versions of Metabase.

Was this helpful?

Thanks for your feedback!
Want to improve these docs? Propose a change.