# Customize Liveboard filters

> For the complete documentation index, see [llms.txt](https://developers.thoughtspot.com/docs/llms.txt)

Source: https://developers.thoughtspot.com/docs/customize-liveboard-filters

# Customize Liveboard filters

To view specific data across the tables and charts on an embedded Liveboard, users can use Liveboard filter options. The Visual Embed SDK provides properties and host events to control which filter chips are visible, apply filters at load time, scope filters to specific tabs or groups, and update filters programmatically.

Before you begin, make sure you have [embedded a Liveboard]({{navprefix}}/{{embed-pinboard}}) using the `LiveboardEmbed` component.

## Customizing filter visibility

To hide the entire header area, including filters and the Liveboard menu, set `hideLiveboardHeader` to `true`. You can then trigger filter interactions programmatically using host events. For more information, see [Show/hide large UI elements]({{navprefix}}/{{customize-liveboard-layout}}#show-hide-ui-elements).

If the Liveboard has multiple tabs and the compact header is enabled, you can set `hideIrrelevantChipsInLiveboardTabs` to `true` to hide filters that are not relevant to the current tab in an embedded Liveboard. Note that `hideIrrelevantChipsInLiveboardTabs` is set to `true` by default on all ThoughtSpot embedded instances using Visual Embed SDK v1.51.0 or later.

```JavaScript
const liveboardEmbed = new LiveboardEmbed(document.getElementById('ts-embed'), {
    //... other embed config properties
    isLiveboardCompactHeaderEnabled: true,
    hideIrrelevantChipsInLiveboardTabs: true,
});
```

When `hideIrrelevantChipsInLiveboardTabs` is `true`:

-   Filter chips backed by data sources that are **not used by any visualization on the active tab** are hidden automatically when the user switches tabs.
    
-   A **Show irrelevant filters** toggle button appears in the filter row when at least one chip is hidden, allowing users to temporarily reveal all chips.
    
-   When the user clicks **Show irrelevant filters**, a complementary **Hide irrelevant filters** button appears to restore the filtered view.
    

For more information about the compact header, see [Enable compact Liveboard header]({{navprefix}}/{{customize-liveboard-layout}}#compact-header).

### Masked filter chips

If a Liveboard includes filters on columns that a user cannot access because of column-level security, the filter values are masked for that user. Use the `showMaskedFilterChip` property to control whether these masked filter chips are visible:

-   `true`: the filter chips for inaccessible columns are displayed as masked.
    
-   `false`: the filter chips for inaccessible columns are hidden.
    

```JavaScript
const liveboardEmbed = new LiveboardEmbed(document.getElementById('ts-embed'), {
    //... other embed config properties
    showMaskedFilterChip: true,
});
```

The `showMaskedFilterChip` property is also available in full application embedding. For more information, see [Column security rules on Liveboards]({{navprefix}}/{{data-security}}#csr-liveboards).

## Apply filters at load time

To open an embedded Liveboard with specific filter and parameter values, set `liveboardOverride`. The values appear in the Liveboard’s filter and parameter chips. For more information, see [Liveboard filter and parameter overrides]({{navprefix}}/{{liveboard-overrides}}). To change values after load, use `HostEvent.UpdateFilters`.

To add a filter condition that doesn’t appear in the chips, use [runtime filters]({{navprefix}}/{{runtime-filters}}) instead.

> **IMPORTANT:** Runtime filter limits vary by input path. URL-based runtime filters are capped at 50. When using the Visual Embed SDK runtimeFilters property, the limit is configurable by a ThoughtSpot administrator, with a default and maximum of 1,000 runtime filters. Filters beyond the enforced limit are silently dropped without an error or warning. For more information, see Runtime filter limit.

## Contextual filtering in Liveboards Early Access

Starting with ThoughtSpot Cloud 26.10.0.cl release, Liveboard filters and parameters can be scoped at three levels:

-   **Liveboard**: applies to all visualizations on the Liveboard.
    
-   **Tab**: applies only to visualizations on a specific tab.
    
-   **Group**: applies only to visualizations in a specific group on a tab.
    

With contextual filtering, you can add the same filter at more than one level on a Liveboard, but not at a level directly below it in the same hierarchy. For example:

-   If a `Region` filter is set at the Liveboard level, it cannot be added again on any tab or group on that Liveboard.
    
-   If a `City` filter is set on Tab 1, it cannot be added to a group on Tab 1. However, it can be added to a group on another tab, such as Tab 2, because that group is not in the Tab 1 hierarchy.
    

> **NOTE:** Contextual filtering in Liveboards is an Early Access feature and is disabled by default on ThoughtSpot instances. To enable this feature on your instance, set isScopedLiveboardFilteringEnabled to true.

```JavaScript
const liveboardEmbed = new LiveboardEmbed(document.getElementById('ts-embed'), {
    //... other embed config properties
    liveboardId: "d7a5a08e-a1f7-4850-aeb7-0764692855b8",
    isScopedLiveboardFilteringEnabled: true,
});
```

The `isScopedLiveboardFilteringEnabled` property is also available in `AppViewConfig` for full application embedding.

To get the groups on a Liveboard, use `HostEvent.GetGroups`. To scope a filter or parameter update to a specific tab or group, pass the `applicability` attribute with `HostEvent.UpdateFilters` or `HostEvent.UpdateParameters`:

```javascript
liveboardEmbed.trigger(HostEvent.UpdateFilters, {
    filters: [
        {
            column: 'Region',
            oper: 'IN',
            values: ['West'],
            applicability: {
                level: 'GROUP',
                targetId: '{group-id}',
            },
        },
    ],
});
```

To listen for filter and parameter changes, use `EmbedEvent.FilterChanged` and `EmbedEvent.ParameterChanged`. Starting with SDK 1.53.0, both events include an optional `applicability` field in their response payload that indicates the scope of the change.

For more information, see [Liveboard group and parameter events]({{navprefix}}/{{events-hostEvents}}#liveboard-group-events) and [Scoped filter and parameter host events]({{navprefix}}/{{events-hostEvents}}#applicability-host-events).

To set tab-level and group-level filter and parameter values at load, use the `liveboardOverride` property. For more information, see [Target a model, tab, or group]({{navprefix}}/{{liveboard-overrides}}#scoping) in [Liveboard filter and parameter overrides]({{navprefix}}/{{liveboard-overrides}}).

## Updating filters

Use the following host events in the Visual Embed SDK to update filters:

-   [`HostEvent.UpdateFilters`](https://developers.thoughtspot.com/docs/Enumeration_HostEvent#_updatefilters) to update Liveboard filters
    
-   [`HostEvent.UpdateRuntimeFilters`](https://developers.thoughtspot.com/docs/Enumeration_HostEvent#_updateruntimefilters) to update runtime filters
    
-   [`HostEvent.UpdateCrossFilter`](https://developers.thoughtspot.com/docs/Enumeration_HostEvent#_updatecrossfilter)
    

For more information and examples, see [Filter types and application layers]({{navprefix}}/{{filters_overview}}).

## Related information

-   [Embed a Liveboard]({{navprefix}}/{{embed-pinboard}})
    
-   [Customize Liveboard layout and UI]({{navprefix}}/{{customize-liveboard-layout}})
    
-   [Customize data refresh and download options]({{navprefix}}/{{liveboard-data-downloads}})
    
-   [Runtime filters]({{navprefix}}/{{runtime-filters}})
    
-   [Runtime Parameter overrides]({{navprefix}}/{{runtime-parameters}})