$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\FieldorKirby\Form\FieldClass
This method modifies the existing $form object it is applied to and returns it again.
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |