Conditional Filters
Setting up conditions to filter the list data.
The conditional filtering feature allows you to filter the list, as well as other dynamic blocks, based on the defined conditions.
It's available through Conditional Filters in the block settings sidebar under the Source section.
Now, let's see how it works.
First of all, from the dropdown selector at the top, you can choose whether any or all of the defined conditions should be met for filtering the information.
Additional conditions can be joined with:
- AND (when "All" is selected)
- OR (when "Any" is selected)
Moving on, let's see how the Condition is configured. There are three fields in Condition Settings:
1. Field
Here, you need to select a field from the specified data source base, for which the condition will be defined.
2. Condition
Text-like Fields, e.g. emails, formulas, URLs, single select fields โ can be used with the following available conditions:
- Is โ the Field value needs to match the Value exactly
- Is not โ the Field value has any value apart from the Value
- Contains โ the Field value partially matches the Value
- Does not contain - the Field value doesnโt partially match the Value. It checks if the given Value is not present within the Field value
- Is any of โthe Field value is any of the Value(s). Multiple values can be added
- Is none of โ the Field values have any other value apart from the Value(s). Multiple values can be added
- Is empty โ the Field value is empty
- Is not empty โ the Field value is not empty. Has some value
- Starts with โ the Field value starts with the Value
- Ends with โ the Field value ends with the Value
Numeric Fields can be used with the following available conditions:
- =
- โ
- >
- <
- โฅ
- โค
- Is between (inclusive of min/max)
- Is empty
- Is not empty
Array-like Fields, e.g. multi-select fields, linked records, tags, lookup fields can be used with the following available conditions:
- Includes any of
- Includes all of
- Includes exactly
- Includes none of
- Is empty
- Is not empty
Boolean Fields, e.g. checkbox fields:
- Is
- Is not
- Is empty
- Is not empty
3. Value
Here, you have two options. Let's consider each one separately.
Entering a specific value
You can enter a specific value for the selected field so that only the records having that value are displayed.
Let's say we have a list of employees in Airtable and want to display only the ones whose position is Project Manager.
Below you can see how we apply a conditional filter to show only the entries that meet this condition.
Using Logged-in user's parameters
Using this option, you can set a condition to filter the list for each logged-in user personally, so that each user only sees entries related to him/her.
By default, you'll have user's Email and Email-Domain options here. However, if you've connected users to a data source, all the fields from the data source will also become available for your choice. Below, you can see how we add fields from the connected Airtable table.
Let's consider a specific example to make it clear how this works and in which cases it can be applied. Let's imagine you have a task list on Airtable with such fields as Assignee, Description, and Status. The Assignee field contains the emails of the users to which the task is assigned.
To be able to view their tasks, the users need to log into the system and navigate to the page with the list. However, you want each user to see only his/her tasks, and that can be achieved with a single condition. In Condition Settings we are going to set the Field to Assignee and Action to Logged in User's Email. This way the logged in user will only see those entries of the list, where the Assignee field corresponds to his/her email address. The below GIF illustrates this.
That's it. This way, you can set a condition for any of the fields in your list and filter the list accordingly for your logged in users.
Now, letโs consider some specific value use cases to see how you can handle them.
Use Case: Using a Checkbox field in a Conditional Filter
Airtable has a Checkbox field type which you might want to use in a conditional filter.
If you want to display the records that have the checkbox checked, you can use the is not empty condition as shown below. And vice versa, if you want to filter the unchecked records, you can use the is empty condition.
Security
Last updated on June 3, 2024