$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
This method does not modify the existing $fields
object but returns a new object with the changes applied. Learn more →