This key defines a message shown above an input while it is disabled, to explain why the value cannot be edited.
The message is shown when disabled is true or disabled_if is truthy, and hidden otherwise.
CloudCannon supports a limited selection of Markdown formatting for the value of this key: links, bold, italic, subscript, superscript, and inline code.
This key has no default.
Appears in#
├── Text Input
│ └── disabled_message
├── Disabled Input
│ └── disabled_message
├── _inputs
│ └── *
│ ├── Textarea Input
│ │ └── disabled_message
│ ├── Code Input
│ │ └── disabled_message
│ ├── Color Input
│ │ └── disabled_message
│ ├── Number Input
│ │ └── disabled_message
│ ├── Range Input
│ │ └── disabled_message
│ ├── Rich Text Input
│ │ └── disabled_message
│ ├── Date/Datetime Input
│ │ └── disabled_message
│ ├── Time Input
│ │ └── disabled_message
│ ├── File Input
│ │ └── disabled_message
│ ├── Multiselect Input
│ │ └── disabled_message
│ ├── Choice Input
│ │ └── disabled_message
│ ├── Multichoice Input
│ │ └── disabled_message
│ ├── Object Input
│ │ └── disabled_message
│ └── Array Input
│ └── disabled_message
├── Boolean Input
│ └── disabled_message
├── URL Input
│ └── disabled_message
└── Select Input
└── disabled_messageType#
string
Examples#
In this example, published is checked, so the slug input is read-only and shows the message explaining why.
Copied to clipboard
published: true
slug: launch-week
_inputs:
published:
type: checkbox
slug:
type: text
disabled_if: published
disabled_message: Unpublish this post to change its URL.{
"published": true,
"slug": "launch-week",
"_inputs": {
"published": {
"type": "checkbox"
},
"slug": {
"type": "text",
"disabled_if": "published",
"disabled_message": "Unpublish this post to change its URL."
}
}
}