Variables
Introduction
Variables are a set of markers used to identify a certain value in the current context. They can be used in scenarios such as configuring block data scope, field default values, linkage rules, workflows, etc.

Currently Supported Variables
Current User
Represents the data of the currently logged-in user.

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

Current Form
The value of the current form, only used for form blocks. Usage scenarios include:
- Linkage rules for current form
- Form field default values (only valid when adding data)
- Data scope settings for relationship fields
- Field assignment configuration for submit operations
Linkage Rules for Current Form

Form Field Default Values (only valid when adding data)

Data Scope Settings for Relationship Fields
Used to handle linkage between relationships, for example:

Field Assignment Configuration for Submit Operations

Current Object
Currently only used for field configuration of sub-forms and sub-tables in form blocks, representing the value of each item:
- Default values for sub-fields
- Data scope for sub-relationship fields
Default Values for Sub-fields

Data Scope for Sub-relationship Fields

Current Record
A record refers to a row in a data table, with each row representing a record. There is a "Current Record" variable in linkage rules for row operations in display-type blocks.
Linkage Rules for Row Operations

Date Variables
Related variables include:
- Current time
- Yesterday
- Today
- Tomorrow
- Last week
- This week
- Next week
- Last month
- This month
- Next month
- Last quarter
- This quarter
- Next quarter
- Last year
- This year
- Next year
- Last 7 days
- Next 7 days
- Last 30 days
- Next 30 days
- Last 90 days
- Next 90 days
WARNING
Except for current time (Current time) which is a moment (string), other date variables are time periods (arrays). Currently, time periods can only be used in data scope, not in field default values.
Related usage scenarios include:
- Date field condition settings for block data scope
- Date field condition settings for relationship field data scope
- Date field condition settings for operation linkage rules
- Date field default value settings