Variables are a set of tokens used to identify a value in the current context. They can be used in scenarios such as configuring block data scopes, field default values, linkage rules, and workflows.

Represents the data of the currently logged-in user.

Represents the role identifier (role name) of the currently logged-in user.

The values of the current form, used only in form blocks. Use cases include:


Used to dynamically filter the options of a downstream field based on an upstream field, ensuring accurate data entry.
Example:

A record refers to a row in a collection, where each row represents a single record. The "Current Record" variable is available in the linkage rules for row actions of display-type blocks.
Example: Disable the delete button for documents that are "Paid".

Popup actions play a very important role in NocoBase interface configuration.
Blocks within a popup can use the "Current Popup Record" variable. Related use cases include:
This variable represents the query parameters in the current page URL. It is only available when a query string exists in the page URL. It is more convenient to use it with the Link action.


The value of this variable is a string, which is a credential for accessing the NocoBase API. It can be used to verify the user's identity.
Example: Do not display the "Print template" action on non-desktop devices.
