Skip to content

maxlength

Field validator

All field validators

The value must be at most a given number of characters.

Written as
"Validators": [{ "Type": "maxlength" }]
In Liquid
{{ maxlength_validator }} — the typed object a template reads for this rule.
Use with
text, textarea, code, emails, path

Properties

Accepted in addition to the shared properties every definition carries.

Property Required Description
Message — Text shown when the value fails this check.
Value — The bound, as a whole number.