Skip to content

Kirby 4.2.0

$fieldclass->required()

If true, the field has to be filled in correctly to be saved.

$fieldclass->required(): bool

Return type

bool

Parent class

Kirby\Form\FieldClass