Skip to content

Kirby 6.0.0

$textField->isRequired()

Checks if the field is required

$textField->isRequired(): bool

Return type

bool

Parent class

Kirby\Form\Field\TextField inherited from Kirby\Form\Field\InputField