Skip to content

Kirby 6.0.0

$inputField->fill()

Sets a new value for the field

$inputField->fill(mixed $value): InputField

Parameters

Name Type Default
$valuerequired mixed no default value

Return type

Kirby\Form\Field\InputField

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

Parent class

Kirby\Form\Field\InputField inherited from Kirby\Form\Field\ValueField