Skip to main content

Version: 19.11 (EOL)

Global Filters

The globalFilters config is used to show/hide and configure global filters in the List screen. Workspaces supports three global filters: GroupName, FormName and DateCreated.

note

While globalFilters is not mandatory, if it's not set then all queries will have a dateCreated range from one year before the current date to the current date inclusive.

Options

Group Name

The GroupName option is used to show/hide the Group Name select that allows Workspaces users to filter Txns by group names.

GroupName relies on globalActions.GroupName.options in order to display the group list.

Form Name

The FormName option is used to show/hide the Form Name select that allows Workspaces users to filter Txns by form names.

FormName relies on globalActions.FormName.options in order to display the form list.

Date Created

The DateCreated option is used to show/hide the Date Created input that allows Workspaces to filter Txns by date created ranges.

Attributes

For a list of supported attributes, see Reference > CurrentSpaceGlobalFilters.

Example

The following example shows how to configure the label, options and value for the various global filters.

Global Filters config
{
"globalFilters": {
"GroupName": {
"label": "Task queue",
"options": ["Error Review", "Fraud Review"],
"value": "All"
},
"FormName": {
"label": "Product Name",
"options": ["DAO - Fraud Review", "DAO - Manual Review"],
"value": "All"
},
"DateCreated": {
"label": "Task created",
"value": ["{{ date('4 weeks ago') }}", "{{ date('now') }}"]
}
}
}