Status Field (PRO)
A read-only badge computed from another field. Nobody fills it in — you describe the rules once, and the value follows the source.
Settings:
| Setting | What it does |
|---|---|
| Source field | The field whose value is examined |
| Status rules | Rows of Up to (≤) / Status / Color |
Rules are ordered and the first match wins. For a numeric source a row matches when the value is less than or equal to its threshold; for a text source, when the value is equal to it. If nothing matched, the last row is used — which is what makes it the "and above" bucket.
| Up to (≤) | Status | Color |
|---|---|---|
| 0 | Out of stock | danger |
| 10 | Running low | warning |
| In stock | success |
Colours are success, warning, danger and info; anything else renders grey.
Output: the value is a pair, a label and a colour.
<span class="badge badge-{$stock.color}">{$stock.label}</span>The status is computed on the server, not in the browser
The badge updates live as you type, but the browser submits nothing — the value is recomputed from the same rules in PHP on save. So a row written through the REST API, a seed or an import gets the same status as one saved by hand, and the stored value can never drift away from its source.