What rule conditions can check, the values a Set Value rule can fill in, the order rules run in, which rule wins when several apply, and what Test as role does and does not show.
This page is the reference behind Rules: what a condition can check, what a Set Value rule can fill in, in which order rules run and which one wins when several apply to the same field. Admin screens call modules entities; this page says module.
Conditions
A rule's conditions are built in the rule dialog. Each condition takes a field of the record, an operator and a value. Switch Value to Field to compare with another field of the same record instead, for example an end date field is after the start date field. Group conditions with Add Condition and Add Group (once there are conditions, + Condition and + Group); a group is AND (all must hold) or OR (one is enough).
Field type
Operators you can choose (examples)
Text
Equals, Not Equals, Contains, Not Contains, Starts With, Ends With, Is Empty, Is Not Empty
Choice (picklist), user, team
Equals, Not Equals, Is Empty, Is Not Empty, In, Not In
Number, currency
Equals, Greater Than, Less Than, Greater or Equal, Less or Equal, Between
Date, date and time
Before (fixed date), After (fixed date), Is Today, Is in the Past, Is in the Future, Is Before Today, Is After Today, Within Last N Days, Within Next N Days, More Than N Days Ago (date and time fields also have hours and minutes)
Multi-select
Has Any Of, Has All Of, Has None Of
The list offers only the operators that fit the chosen field. Dates such as "today" are the day of the person saving the record, in their time zone.
The dialog also has a JSON mode for the conditions. Use it only if you are comfortable editing JSON; switching back to Visual with a mistake in it says "Fix JSON errors first".
Set Value values
A Set Value rule writes one fixed value or one token into the Target Field:
Pick in Value / Token
Fills in
Today's date ({{TODAY}})
Today's date
Current timestamp ({{NOW}})
The current date and time
Current user ID ({{CURRENT_USER}})
The person saving the record (for a user field)
Current user email ({{CURRENT_USER.email}})
Their e-mail address
Current user name ({{CURRENT_USER.name}})
Their name
Current user team ({{CURRENT_USER.teamId}})
Their primary team
Field:field name
The value of another field of the record
link.field
A field of a linked record, one link away
Custom value...
Any fixed value you type
Anything else you type is saved as plain text, exactly as written ({{now}} and {{today}} also work as tokens). A token must be the whole value; it is not filled in inside longer text. When a record is saved by a portal visitor or by the system, the current-user tokens fill in nothing.
When a Set Value rule applies:
Option
Effect
(no option)
Every time the record is saved and the Condition (when to apply) holds
Only on create
Only when the record is created
Only when condition fields change
Only when an existing record is saved and the Condition (when to apply) holds. Never when the record is created
Also re-apply after every automation write
Keeps the value even when a workflow or action changes the record
The order rules run in
Rules run in their Order value, lowest first. Rules with the same order run in the order they were created.
When a record is saved: Set Value rules first, then Formula rules, then the checks (Required, Read Only, Validation, Dynamic Options, Dependent Picklist).
Formula rules run one after the other, so a Formula rule can use the result of a Formula rule with a lower Order. A Formula rule that reads a field calculated by a rule below it gets that field's previous value: give the rule it depends on a lower Order.
Because Set Value runs before Formula, a Set Value rule with Field: x where x is calculated by a Formula rule copies the previous value. Use a Formula rule whose formula is just x instead.
When a save fails, each field that fails shows its message, and the form scrolls to the first one.
Which rule wins
When several rules act on the same field:
Rule type
Result
Visible
The field shows only when all its Visible rules hold. One rule that does not hold hides it
Required
The field is required when any Required rule holds
Read Only
The field is locked when any Read Only rule holds
Validation
The first matching rule in Order decides the message
Dynamic Options and Dependent Picklist
Only the options every matching rule allows are offered
Dependent Picklist
A value that is no longer allowed is cleared when the field it depends on changes
Dynamic Options
A value that is no longer allowed is not cleared; the save is refused with "Field: "value" is not an allowed option here"
Show Message
Every matching message is shown
Rules are not the only thing that can hide or lock a field. In the form, a locked field's tooltip gives the reason: Read-only for this record type, Always read-only, Read-only by your role permissions, Cannot be changed after creation, or Locked by rule: with the rule's condition. A field your role cannot see stays hidden whatever a Visible rule says.
Rules scoped to a record type apply only to records of that type.
Test as role
The rule dialog has a test panel: click Test Rule Preview to open it. Enter sample values in the real field inputs, choose Test as role:Admin or User, and click Run Test to see what the rule would do.
The test is a preview. As the dialog says, it does not simulate:
chains of Set Value and Formula rules (one rule's result feeding another),
field access by role,
record-type scope,
panel visibility,
Read Only After Create.
It offers only Admin and User, not your own roles. To see the real behaviour, try the rule in a record form. Admins can open the Rule Debug Panel from the form header to see which rules are active for that record.