CommunityHire an ExpertSign Up
Actions, styling and codeBlock Visibility and Filters
Actions, styling and code

Block Visibility and Filters (Classic apps)

Block Visibility

This section goes through the process of configuring the visibility of any block in your Softr app.

As soon as you have set up memberships, you can choose which user group you want a particular block to be visible to. This is configured through Visibility tab in block settings and has the following options:

  • All users (selected by default)

  • Logged in users

  • Non Logged in users

Visibility options

Visibility options

If you switch the block visibility to Logged in users or to Non Logged in users, a padlock icon will start appearing on the block, as shown below, indicating that it’s gated content with limited visibility.

Padlock icon indicating limited visibility

Padlock icon indicating limited visibility

For example, the block visibility feature can be used to show a header with log-in/sign-up buttons to non-logged-in users and a different header without buttons to logged-in users (discussed here). But that’s just one case, and there can be many other cases when you need to display/hide a certain block from a different user group, thus having different content for logged-in and non-logged-in users.

Device visibility

Apart from setting block visibility for certain user groups, you can set device-based visibility.

Device visibility options

Device visibility options

By default, Desktop, Tablet, and Mobile options are enabled. You can disable any of the options by clicking on it. In the example below, only logged-in users who are viewing the page on a mobile device will see the block.

Applying device visibility

Applying device visibility

Custom user groups

You can also define more low-level visibility rules for custom user groups. Learn more about User Groups.

Security

Action Button Visibility

Each Action Button has a Button Visibility section where you can define which users the button is accessible to.

Accessing Button Visibility

Topbar buttons such as the Add Record button have only the Who can see section, where you can choose between all users, logged-in users and non logged-in users as well as select a specific user group, so that the button is visible only to the selected custom user group.

Item buttons (such as the Update Record button), on the other hand, also have an option to set conditional visibility (called On which record) to show selected records based on conditional rules.

We set up button visibility when configuring Add Record and Update Record buttons, so you can check out these articles for specific examples of customizing button visibility.

Conditional Filters

Conditional filters show only the records that meet the conditions you define. They work on the List block and on other dynamic blocks.

In the Studio, this section is called Record filters. Find it in the Source tab of the block settings. See also Record filters.

The Record filters section with the any-or-all selector and the Add condition button

The Record filters section in the Source tab of a block.

First, use the dropdown at the top to choose whether any or all of the conditions must be met.

The any-or-all dropdown with Any and All options

“Any” or “All” of the conditions

Extra conditions join with:

  • AND (when “All” is selected)

  • OR (when “Any” is selected)

A second condition joined with And

The second condition starts with And when “All” is selected.

Each condition has three parts: a field, a condition, and a value.

1. Field

Select the field of the data source table that the condition tests.

2. Condition

The condition dropdown listing Is, Is not, Contains, Does not contain, Is any of, Is none of, and Is empty

The conditions available for a text-like field.

The condition describes how the field relates to the value. The available conditions depend on the field type.

Text-like fields, such as emails, formulas, URLs, and 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, such as multi-select fields, linked records, tags, and 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, such as checkbox fields:

  • Is

  • Is not

  • Is empty

  • Is not empty

3. Value

You have two options.

Entering a specific value

Enter a value. The block then shows only the records that have that value.

For example, a Tasks table in Softr Databases has a Status field. To show only the tasks in progress, set the condition to Status is In progress.

A Tasks table in Softr Databases with Status and Assignee email columns

A Tasks table with Task, Details, Status, Priority, and Assignee email fields.

Using Logged-in user’s parameters

Use this option to filter the block for each logged-in user, so that each user sees only their own records.

By default, you can use the user’s Email and Email domain. If you’ve connected users to a data source, all the fields of that data source are available too.

Here is an example. The Tasks table has the fields Task, Status, and Assignee email. The Assignee email field holds the email of the user who owns the task.

Each user should see only their tasks. One condition does this. Set the Field to Assignee email and the value to the logged-in user’s Email. The block then shows only the tasks where Assignee email matches the email of the user who is logged in.

Maria sees her three tasks and Leo sees his three tasks, from the same Tasks table with the same record filter

One table and one condition give each user a different view.

You can set a condition like this for any field of your block.

Use Case: Using a Checkbox field in a Conditional Filter

You can filter on a Checkbox field.

To show the records with the checkbox checked, use the is not empty condition. To show the unchecked records, use is empty.

A condition on a checkbox field with the is not empty operator

“is not empty” shows the checked items.

Security

Record Filters

Overview

Record filters are conditional filters you can apply on dynamic blocks (e.g., List, Table, Grid, Kanban) to control which records from a data source are displayed.

Record filters are simply one area where conditional filtering can be applied. To learn more about conditional filters and where they can be applied, check out the Conditional Filters doc.

The Record filters section in the Source tab of a block. Numbers point to the section and the Add condition button

Where to set record filters: the Source tab of a dynamic block.

Key Use Cases

There are a few ways in which you can use conditional filtering to only show specific record(s) on a block. Note that this filtering is not accessible to the end user and essentially pre-filters the list or items for them to only see a specific record or set of records.

  • Basic Filtering: Display only records meeting static criteria, such as tasks in a specific status (e.g., “In Progress”) or events in the current year (e.g., date field is after a certain date). This is ideal for curating views without user input and acts as a sort of pre-filter.

  • Show records relevant to the current user: Show items relevant to the logged-in user, like tasks assigned to their email (e.g., ‘Assignee’ field is Logged-in user’s Email). This personalizes the experience and enhances security by hiding irrelevant data.

    • Integration with Global Data Restrictions: Global data restrictions apply app-wide rules first (for example, restricting a user group to view only certain records), and record filters layer on top for block-specific refinements. They work together seamlessly: global data restrictions enforce broad access controls, while record filters handle granular display logic within allowed data. For example, if globals restrict a table to user-owned records, record filters can further narrow to a specific status. Additionally, record filtering for specific user groups using global data restrictions can save you time by not having to manually apply record filtering to multiple blocks that show the same data.
  • Show only records relevant to current details page’s record: In linked list setups, filter sub-items based on the selected main record (e.g., show tasks linked to the current project via a record ID match). This creates hierarchical views, like a project details page displaying only associated tasks.

A Tasks table filtered so that Maria sees only her tasks and Leo sees only his, using the logged-in user email

Example: a record filter that shows each logged-in user only the tasks assigned to their email.

Tips and Tricks

  • You can combine filters to create complex logic using “And” and “Or” type filtering to achieve the desired result. In the event you need cascading or sub-grouping of filters, a tab container can help by branching each block out into the needed sub-grouping.

Options Filters

Overview

Options filters are a specialized use of conditional filters to restrict the choices available in dropdown inputs, conditional forms, or similar selection fields, ensuring users only see relevant options based on conditions.

Where Can Options Filters Be Used?

  • Dropdown Inputs: In forms for creating or updating records, to filter options in linked record or value-based dropdowns.

  • Quick Select Inputs: You can filter a quick select field in conditional forms to only show options that meet certain criteria.

  • Inline Filters: On dynamic blocks, where user-facing filter dropdowns can have their options restricted (e.g., only show filterable statuses that the user has access to).

  • Other Contexts: Any selection field mapped to a data source, such as in conditional forms for step or section logic.

Why Use Options Filters?

Options filters improve user experience by preventing irrelevant or unauthorized selections. For example, clients can only see and select projects relevant to them in a dropdown (for example, filter by client email matching the Logged-in user’s Email). This can help dramatically in reducing errors and keep people from seeing options they shouldn’t see.

How Options Filters Work with Global Data Restrictions

Global data restrictions apply first to limit the overall data (e.g., hiding restricted records from the data source table), and options filters then refine the visible choices within that selection. For instance, if global data restriction rules restrict a projects table to user-owned records, options filters can further limit dropdown options to active projects only. This layered approach ensures security at the app level while allowing precise control in inputs.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.