Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add User Filters

Give users filter menus on a Data Table, with a value preselected on load, so a service manager opens the case list already narrowed to what matters.

A service manager starts each morning on the open cases. The list is long, and what matters first is the High priority work, then a given status. With user filters, the table opens with Priority already set to High, and the manager switches Status between New and Escalated in two clicks, without asking an admin for another list view.

Case table with the Priority filter set to High and the five matching cases
The table opens with Priority already set to High: five cases.

Before you start

  • A Data Table on Case with a Query or Variable data source. User filters are not available with Manual data.

  • Columns mapped for at least Case Number, Subject, Priority and Status.

Steps

1

Add the fields users can filter on

  1. Select the Data Table on the canvas.

  2. In the Properties panel, open the Data Mappings section.

  3. Under Filters, click Add Filters and set Filter By to Priority.

  4. Add a second item with Filter By set to Status.

Each field can be used once.

Filters collection with Priority and Status, the Priority filter open with High as its default value
Each filter names a field and can carry a default value.
2

Preselect High priority

Click the Priority item and set Default Value (Optional) to High.

The table now loads already filtered. The manager can still change or clear the value. The default value editor follows the field type:

Field type
Default value

Picklist, multi-select picklist

One or several values from the picklist

Text, text area, ID, lookup, address

One or several values, typed

Checkbox

True or False

Number, currency, percent

A number

Date, date/time

A date

Time, email, phone, URL

One value

Leave the field empty to start unfiltered.

3

Rename a filter (optional)

A filter is labelled with the field name. To show something else, open the item's advanced options, turn on Custom Label and type the Label, for example Case status instead of Status.

4

Choose where the filters appear

Open the Filter section of the Properties panel and set Type:

  • Horizontal (default): one menu per filter, in the table header.

  • Popover: a single filter button in the header that opens all the filters.

  • Panel: the filters move to a side panel. Set its side (Left or Right), Closed by Default and Reset Button Label in the Side panel section.

Case table with the Priority and Status filters in a side panel on the left
With Type set to Panel, the filters move to a side panel.
5

Keep the options relevant (optional)

Still in the Filter section:

  • Use Record Picklist Values: a picklist filter lists only the values found in the records, instead of every value defined on the field. A status no case uses, such as Working, disappears from the menu.

  • Use Cascading Filter Values: picking a value in one filter narrows the options of the others. With Priority set to High, the Status menu lists only the statuses of High priority cases. When this is on, Use Record Picklist Values is ignored.

6

Save and test

Save the component and open the page. The table shows only High priority cases and the Priority menu shows High as selected. Pick New in Status: only the new High cases remain. Clear Priority: every new case appears, whatever its priority. The builder canvas ignores default values and lists every record, so test on the page itself.

Quicker, without defaults: turning on Filterable on a column in Data Mappings also adds that field to the filters, and All Columns Filterable (advanced options of the Content section) does it for every column. Use the Filters collection when you need a default value, a custom label, or a filter on a field that is not a column.

Filters and search (Set Up Search) can sit on the same table, and they answer different needs.

  • Filters pick from known values (a priority, a status, a date). Use them when the user narrows by category, and when the table should open pre-filtered.

  • Search matches free text the user types (part of a subject or a name). Use it when the user is looking for one record.

Troubleshooting

The Filters collection is missing from Data Mappings

The data source is Manual. User filters need a Query or Variable data source.

A field is not offered in Filter By

Filter By lists only the fields Salesforce allows in a filter. Long Text Area and Rich Text Area fields (Case Description, for example) are not filterable.

I chose Horizontal or Panel, but the filters show as a popover

When the Data Table is narrow, the filters always fall back to a popover. Give the component more width on the page.

Was this helpful?