This key defines a custom error message that explains why a value has failed the validation criteria from options.min.
This key requires you to define options.min.
This key has no default.
This key is available for Number Inputs.
Appears in#
└── _inputs
└── *
├── Number Input
│ └── options
│ └── min_message
└── Range Input
└── options
└── min_messageType#
string
Examples#
In this example, we prompt our team to enter a valid number using a custom message.
Copied to clipboard
_inputs:
rating:
type: number
comment: How highly did you rate this experience?
options:
max: 5
max_message: Cannot be more than 5
min: 1
min_message: Cannot be less than 1{
"_inputs": {
"rating": {
"type": "number",
"comment": "How highly did you rate this experience?",
"options": {
"max": 5,
"max_message": "Cannot be more than 5",
"min": 1,
"min_message": "Cannot be less than 1"
}
}
}
}