Skip to content

Kirby 4.2.0

$form->field()

Get the field object by name and handle nested fields correctly

$form->field(string $name): Kirby\Form\Field|Kirby\Form\FieldClass

Parameters

Name Type Default
$name * string

Return type

Kirby\Form\Field|Kirby\Form\FieldClass

Exceptions

Parent class

Kirby\Form\Form