Skip to content

Kirby 4.5.0

$field->isRequired()

Checks if the field is required

$field->isRequired(): bool

Return type

bool

Parent class

Kirby\Form\Field