backend.form.beforeRefresh

Called before the form is refreshed.

This allows you to modify the form data before the form is refreshed.

Usage

Attached to a form widget instance.

$formWidget->bindEvent('form.beforeRefresh', function (
    \stdClass $dataHolder
) {
    // Your event listener code goes here...
});

Parameters

Parameter Description
$formWidget

The form widget instance. If the event is attached directly to the form widget, this parameter will be omitted.

$dataHolder
stdClass

An object containing the data from the form to be saved. It contains one property, data, with the array of form data stored within.

Triggers

Class or file Line
Backend\Widgets\Form 370
Copyright © 2024 Winter CMS