Skip to content

Kirby 5.0.4

$fields->submit()

Sets the value for each field with a matching key in the input array but only if the field is not disabled

$fields->submit(array $input, bool $passthrough = true, bool $force = false): Kirby\Form\Fields

Parameters

Name Type Default Description
$inputrequired array no default value
$passthrough bool true If true, values for undefined fields will be submitted
$force bool false If true, values for fields that cannot be submitted (e.g. disabled or untranslatable fields) will be submitted

Return type

Kirby\Form\Fields

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

Parent class

Kirby\Form\Fields