Field type
message
Display-only Inspector note. Renders a coloured panel with a static message. Has no input, no stored value — purely informational. Pairs naturally with conditionalLogic for context-sensitive warnings, hints, and confirmations.
Type: message · Stored attribute type: string
Stored value
n/a — message has no saved value. Leave attributeKey off, or expect it never to be written.
Supports
- Five variants (neutral / info / warning / danger / success), each with its own colour palette and glyph
- Conditional display via conditionalLogic — show a warning when another field is empty, a success when it has a valid value, etc.
- Optional label heading above the message panel
Config options
| Option | Type | Default | Description |
|---|---|---|---|
message | string | The body text shown in the message panel. Preferred over helpText. | |
helpText | string | Fallback body text when message is not set. | |
label | string | Optional heading shown above the message panel. | |
variant | string ("neutral" | "info" | "warning" | "danger" | "success") | Visual treatment of the panel. Defaults to "neutral" (grey). Use warning (amber) for "be careful," danger (red) for "this won't work," success (green) for "looks good," info (blue) for tips. |
Gotchas
- Not interactive — pairs well with
conditionalLogicto display contextual hints (e.g. "Heads up: source is set to manual — pick posts below."). - Use the
dangervariant sparingly. If a field's value is actually invalid, prefer the field's ownvalidationrules (which block save). Adangermessage is for guidance, not enforcement.
Example
{ "id": "ctrl_warning",
"type": "message",
"variant": "warning",
"label": "Heads up",
"message": "This image is over 2 MB — consider compressing it.",
"conditionalLogic": {
"field": "image_size_kb",
"operator": ">",
"value": 2048
},
"parentPanelId": "panel" }Every field also takes the keys common to all fields.