Skip to content

Kirby 6.0.1

$fields->submit()

Sets the value for each field with a matching key in the input array but only if the field can be submitted (e.g. is translatable)

$fields->submit(array $input, bool $passthrough = true, bool $force = false): 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. 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