Conditional rules
A conditional rule sets a field's value automatically based on another field in the same schema. Typical uses:
- A Color field that turns red when
statusis "Sold". - An Image field that shows a flag depending on
country. - A Text field that says "No bids yet" when
bidis empty.
Adding a rule
- Open the schema (Data → Schemas) and edit a field, or create a new one. Rules are available once the schema has at least one other field.
- Under Conditional Rules, click Add rule.
- Fill in the row: IF field operator value THEN result.
- Add more rules if needed, then save the field.
The result input matches the field type: a color picker for Color fields, an image URL with a media picker for Image fields, and a text box for everything else. A field with rules shows a ⚡ rule count in the field list.
Operators
| Operator | Matches when the other field… |
|---|---|
= |
equals the value exactly |
≠ |
does not equal the value |
contains |
contains the value (not case-sensitive) |
excludes |
does not contain the value (not case-sensitive) |
> < ≥ ≤ |
compared as numbers |
Leave the value empty with = to match an empty field. contains and excludes with an empty value never match.
How rules are evaluated
- Rules are checked from top to bottom. The first rule that matches sets the value; the rest are ignored.
- If no rule matches, the field keeps the value it already has.
- In list datasets, rules run separately for every row.
When rules run
- When a manual dataset is saved (including saves from the Graphic Data page).
- When a mapped dataset is refreshed.
- When any field in the schema is created, edited or deleted — rules are re-run on every dataset that uses the schema.
Computed fields in the editor
A field with rules is read-only in the dataset editor. In an object dataset it is labelled Computed; in a list dataset its value is shown as plain text. Edit the field it depends on instead, then save.