FlexiFormHandler::onSuccess
onSuccess is called if onSubmit returns truthy. Use it to handle post-submit workflow.
If this function returns a value, the return value will be passed to the template instead of the form. E.g. Display a "Thank You" Message.
Signature
public function onSuccess(FlexiForm
$form,
DataObject
$flexi )
Parameters
$form
— FlexiForm- Form Object
$flexi
— DataObject- The object extended by FlexiFormExtension