Make fields show, hide, lock or become required when conditions hold, fill in values automatically, check what people type, narrow picklists, show messages and stop records from being deleted.
Rules change how a module's fields behave without any code: show a field only when it matters, make it required in some cases, fill in a value, check what people type, narrow a picklist or stop a record from being deleted. Admin screens call modules entities; this page says module.
Where to find it
One module: Sidebar → Admin → Entity Manager, click the module, then Rules. Click Add Rule to create one.
All modules: Sidebar → Admin → Rules lists every rule with filters (All entities, All types, All status) and a search box (Search by field, panel, or entity...). New Rule asks for the module; creating or editing a rule there takes you to the module's Rules tab.
On the module's Rules tab, each rule shows its type, its field or panel and a Disabled badge when it is off, with Edit, Duplicate and Delete. In Admin → Rules, click a rule to open it in its module's tab.
Before you start
You need permission to change modules.
Your plan includes a number of rules. When you reach your plan's limit, you cannot add more until you delete some or change your plan (see Admin → Subscription).
Rule types
Rule type
What it does
When it is checked
Visible
Shows a field or a panel only when the conditions hold
In the form only (badge Form only)
Required
Makes a field required when the conditions hold
On every save
Read Only
Locks a field when the conditions hold
On every save (automations may still write it)
Validation
Refuses the value with your Error Message when the conditions hold
On every save
Show Message
Shows an info, warning, error or success banner on the form
In the form only
Dynamic Options
When a condition holds, offers only some of a picklist's options
On every save
Dependent Picklist
Offers a picklist's options based on another field's value
On every save
Set Value
Fills a field with a fixed value or a token
Applied when the record is saved
Formula
Calculates a field's value from a formula
Applied when the record is saved
AI Suggest
Suggests values for some fields from similar records, when people leave a source field
In the form only
Prevent Delete
Stops matching records from being deleted, with your message
On every delete
On every save means the rule holds however the record is saved: the form, an import, the API or an automation. Saves from the form, imports, the API and AI are checked against every Required and Validation rule. When an automation or an integration sync updates a record, those rules are checked only if the update changes the field or a field the rule's conditions use (a new record is always checked in full). Picklist rules are checked only when a save changes the field (or, for a Dependent Picklist, its source field), and an empty value is never refused. A Required rule or a picklist rule does not apply while a matching Read Only rule locks the same field. In the form only rules (badge Form only: Visible, Show Message, AI Suggest) shape what people see while they type; saves from the API, AI, imports and workflows are not checked against them.
Steps
Click Add Rule
The Create Rule dialog opens.
Choose the Rule Type and the target
Pick the type. Under Apply To, choose Field and the field, or Panel/Section and a panel of the layout (panels are used by Visible rules). For Dynamic Options and Dependent Picklist, the field list shows only picklist fields ("No enum/multiEnum fields on this entity." when there are none). Some types have their own target, such as Target Field for Set Value.
Set the conditions
Build the conditions (see below). For Show Message they are under Show when (conditions); for Set Value under Condition (when to apply).
Fill in the type's settings
For example the Error Message of a Validation rule, or the Value / Token of a Set Value rule. See Settings per rule type.
Set Order, and Record Type Scope if shown
Order decides which rule runs first (lower first). Record Type Scope limits the rule to one record type; the default is All record types.
Test it, then click Create Rule
Click Test Rule Preview, enter sample values and click Run Test to see the effect. The preview does not apply record-type scope, field access, chained Set Value or Formula updates, or Read Only After Create. Leave Enabled on.
Conditions
Each condition compares a field of the record with a value, or with another field (switch Value to Field). Group them with Add Condition and Add Group, and switch a group between AND and OR. Operators depend on the field type, for example Equals, Contains, Is Empty, Greater Than, Is in the Past or Within Last N Days. More in Rule conditions, values and order.
The Visual / JSON switch above the conditions lets you edit them as JSON instead. JSON also allows conditions on the current user; test those with Test as role: (Admin or User) in the preview.
Settings per rule type
Validation: Error Message, shown when the conditions match. A Validation rule with no condition never fires: the conditions describe the wrong value.
Show Message: Message Type (info, warning, error, success) and Message Text. With no condition, the message always shows.
Dynamic Options: When this condition is met, Show only these options.
Dependent Picklist: Source Field (controls options), then for each source value choose the allowed options of the target field.
Set Value: Target Field, Value / Token (a token such as today's date or the current user, or Custom value...), and the options Only on create, Only when condition fields change and Also re-apply after every automation write.
Formula: Target Field (result goes here) and Formula. Click a field chip to insert it; the formula is checked as you type and a function list helps. Tick Also recompute when the related record changes when the formula reads another record. See Formulas and Formula functions.
AI Suggest: Source Field (triggers suggestion on blur), Target Fields (receive suggestions) (text, picklist, e-mail and URL fields only) and Min Similarity (0–1) (lower gives more, less relevant suggestions; default 0.5). It needs the module's vector search set up. Fall back to AI generation lets AI write a suggestion when no similar record is found, with an optional AI Prompt (optional) and Suggest proactively; these use AI credits.
Prevent Delete: Message when a delete is blocked (at most 500 characters), shown to whoever tries to delete a matching record.
Stop records from being deleted
Use Prevent Delete to protect records, for example posted invoices: a condition that the status equals Posted, message Posted invoices can't be deleted. Cancel the invoice instead. The rule applies to the whole record and to every way of deleting: the record page, a list, the API, AI, portals, integration syncs and automations. Deleting a parent record that would also delete a protected child is refused too. In a bulk delete, if any selected record is protected, nothing is deleted and the message says how many records are protected.
A Prevent Delete condition can use only the record's own fields and the current user. Changed, Changed To, Changed From and fields of related records are refused when you save the rule ("… a delete guard judges the stored record (use equals / in)"). If a rule's condition can't be checked, the delete is blocked.
Good to know
When several rules apply to one field, a Visible field shows only when all its Visible rules hold; Required applies when any Required rule holds; a picklist offers only the options every matching rule allows; for Validation the first matching rule in Order gives the message. Full details: Rule conditions, values and order.
On save, Set Value rules run first, then Formula rules, then the checks. So a Set Value rule that copies a field calculated by a Formula rule copies its previous value; use a Formula rule instead.
A field can also be hidden or locked by other things: its record type's field overrides, your role's field access, or the field's Read Only or Read Only After Create setting. In the form, a locked field's Read only badge has a tooltip that says why (for example "Always read-only").
When a record is saved with several problems, the form marks each field with its message and scrolls to the first; the pop-up message shows the first one.
Admins see a Rule Debug Panel button in a record's form header, listing the module's rules and which of them are active for this record.
Deleting a record type does not delete its rules: they then apply to every record of the module.
Troubleshooting
Message or symptom
Why
What to do
"<Label> is required"
A Required rule applies to this record
Fill the field
Your error message, or "<field> validation failed"
A Validation rule refused the value
Correct the value
<Label>: "<value>" is not an allowed option here
A Dynamic Options or Dependent Picklist rule does not allow this option now
Pick an allowed option
"<Label>" is locked by a rule right now and cannot be changed / N fields cannot be written: …
A Read Only rule locks the field. A save from the API, AI or an import may skip the locked field instead and report "<Label>" is locked by a rule and was not changed
Change what the rule's condition checks, or ask an admin
This <module> record can't be deleted: it is locked by a delete rule. / N of the M selected … records can't be deleted: …
A Prevent Delete rule protects the record
Change the record (for example its status) so the rule no longer applies, or leave it out of the selection
A Validation rule never fires
It has no condition
Add the condition that describes a wrong value
"Target field is required for formula rules" / "Formula expression is required" / "Select at least one option to show" / "Say why the record can't be deleted…"
The rule form is incomplete
Fill in what the message names
"FX() is not available in calculate rules…"
Currency conversion works in formula fields only
Use a formula field instead of a Formula rule
"rules limit reached (…). Upgrade your plan."
Your plan's limit
Delete unused rules or change your plan (Admin → Subscription)