Skip to content

Kirby 5.0.4

$field->fill()

Sets a new value for the field

$field->fill(mixed $value): Kirby\Form\Field

Parameters

Name Type Default
$valuerequired mixed no default value

Return type

Kirby\Form\Field

This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Form\Field