Skip to content

Kirby 3.9.8

Validations::maxlength()

Validates if the field value is max length

Validations::maxlength(\Kirby\Form\Field|\Kirby\Form\FieldClass $field, $value): bool

Parameters

Name Type Default
$field * Kirby\Form\Field|Kirby\Form\FieldClass
$value *

Return type

bool

Exceptions

Parent class

Kirby\Form\Validations