- Description:
This key defines a custom error message that explains why a value has failed the validation criteria from
options.max_length.This key requires you to define
options.max_length.This key has no default.
This key is available for Code, Color, File, Select, Text, Rich Text, and URL Inputs.
- Appears in:
└── _inputs └── * ├── Text Input │ └── options │ └── max_length_message ├── Textarea Input │ └── options │ └── max_length_message ├── Code Input │ └── options │ └── max_length_message ├── Color Input │ └── options │ └── max_length_message ├── Rich Text Input │ └── options │ └── max_length_message ├── File Input │ └── options │ └── max_length_message ├── URL Input │ └── options │ └── max_length_message ├── Select Input │ └── options │ └── max_length_message └── Choice Input └── options └── max_length_message- Type:
string- Examples:
In this example, we prompt our team to enter a valid number of characters using a custom message.
Copied to clipboard_inputs: seo_description: type: markdown comment: Enter a brief description of this blog. options: max_length: 125 max_length_message: You are only allowed 125 characters. min_length: 25 min_length_message: Please write more than 25 characters.{ "_inputs": { "seo_description": { "type": "markdown", "comment": "Enter a brief description of this blog.", "options": { "max_length": 125, "max_length_message": "You are only allowed 125 characters.", "min_length": 25, "min_length_message": "Please write more than 25 characters." } } } }