Skip to content

Filter bar custom buttons in the classic Workbook Editor

3 min read · Updated 11 Nov 2026

This page describes the classic Workbook Editor.

A custom button in the filter bar starts an action when a viewer selects it. The filter bar appears on every sheet, so a button there is available in the same place on all of them.

  1. With the workbook in edit mode, select the filter bar.

  2. In the settings panel, expand Custom buttons at the bottom.

    Filter Bar settings panel with Opacity, Background blur, Filter button, Limit fields and Insights options, and a collapsed Custom buttons section at the bottom.

  3. Select the plus icon to add a button.

  4. Set the button’s properties:

    Custom button properties: a name field containing Smart_Button, a label field reading “this is my button”, a Show icon toggle and a plus button.

    • Name: the name the action blocks use to recognise the button. It does not have to be unique: buttons on different sheets with the same name run the same actions.
    • Label: the text shown on the button.
    • Show icon: whether the button shows an icon.

The button appears on the right of the filter bar.

Filter bar on the right showing a Calendar Placeholder button and the new custom button labelled “this is my button” with a plus icon.

Defining the actions for a filter bar button

Section titled “Defining the actions for a filter bar button”

Every custom button in the filter bar emits its events from the filter bar, so one When block handles all of them. Inside it, compare the Custom button name event parameter with a button’s name to decide what each button does.

  1. Open the Actions module.

  2. Add a When block and pick Filter Bar as the object.

    Actions module When block with its Object name dropdown open, listing buttons and the Filter Bar option highlighted.

  3. Pick the event, such as On click, and add an If block inside the When block.

    When Filter Bar emits On click do block containing an empty If and Else block.

  4. In the If condition, put a Select event parameter block on one side and pick Custom button name from its dropdown. On the other side, put the button name to compare it with, such as Smart_Button.

    If condition with the Select event parameter dropdown open, offering the option Custom button name.

In this action, When Filter Bar emits On click checks whether Custom button name equals Smart_Button. If it does, the action applies a filter on the club_name field of ClubDim. For any other button, the Else branch goes to the sheet Highlights | Sales.

When Filter Bar emits On click: if Custom button name equals Smart_Button, set a ClubDim club_name filter as Applied, else go to Highlights | Sales.

To run the same blocks whichever button is selected, check only that Custom button name is not null. In this action, any named button sets the variable vCalendarName to the sheet name followed by - Calendar, clears the filters on the date_field field of Date_List, and makes an object visible.

On click block: if Custom button name is not null, set vCalendarName to the sheet name plus “- Calendar”, clear Date_List date_field filters, set its Visibility to True.

For the events the filter bar emits and its event parameters, see When [Filter bar] emits [Event type] do. For the filter bar’s other settings, see Filter Bar.