Skip to content

Kirby 4.2.0

$layoutfield->required()

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

$layoutfield->required(): bool

Return type

bool

Parent class

Kirby\Form\Field\LayoutField inherited from Kirby\Form\FieldClass