$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 |
---|---|---|
$namerequired | string |
no default value |
Return types
Kirby\Form\Field
orKirby\Form\FieldClass
Exceptions
Type | Description |
---|---|
Kirby\Exception\NotFoundException |