Skip to content

Kirby 6.0.0

$optionField->reset()

Resets the value back to the empty value

$optionField->reset(): OptionField

Return type

Kirby\Form\Field\OptionField

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

Parent class

Kirby\Form\Field\OptionField inherited from Kirby\Form\Field\ValueField