$optionsField->submit()
Submits a new value for the field. Fields can overwrite this method to provide custom submit logic. This is useful if the field component sends data that needs to be processed before being stored.
$optionsField->submit(mixed $value): OptionsField
Parameters
| Name | Type | Default |
|---|---|---|
| $valuerequired | mixed |
no default value |
Return type
This method does not modify the existing $optionsfield object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Form\Field\OptionsField
inherited from Kirby\Form\Field\ValueField