- Description:
This key defines the minimum string length, in characters, that CloudCannon will allow in an Input.
When configured, CloudCannon will warn you when an Input value is too short.
If the Input already contains a shorter value, CloudCannon will require you to add characters until the Input contains a valid string to save your changes, or discard your unsaved changes.
Value can be any positive integer.
If
options.max_lengthis also configured, this key cannot be a greater number.This key has no default.
This key is available for Code, Color, File, Select, Text, Rich Text, and URL Inputs.
To use this key in a Select Input,
allow_createmust be set totrue.- Appears in:
└── _inputs └── * ├── Text Input │ └── options │ └── min_length ├── Textarea Input │ └── options │ └── min_length ├── Code Input │ └── options │ └── min_length ├── Color Input │ └── options │ └── min_length ├── Rich Text Input │ └── options │ └── min_length ├── File Input │ └── options │ └── min_length ├── URL Input │ └── options │ └── min_length ├── Select Input │ └── options │ └── min_length └── Choice Input └── options └── min_length- Type:
number- Examples:
In this example, we want our team to enter a blog description using the Rich Text
seo_descriptionInput. This Input requires a minimum of 25 characters.Copied to clipboard_inputs: seo_description: type: markdown comment: Enter a brief description of this blog. options: max_length: 125 min_length: 25{ "_inputs": { "seo_description": { "type": "markdown", "comment": "Enter a brief description of this blog.", "options": { "max_length": 125, "min_length": 25 } } } }