backend.form.refreshFields

Triggered in Backend\Widgets\Form.

Called when the form is refreshed, giving the opportunity to modify the form fields

Example usage:

Event::listen('backend.form.refreshFields', function ((\Backend\Widgets\Form) $formWidget, (array) $allFields) {
    $allFields['name']->required = false;
});

Or

$formWidget->bindEvent('form.refreshFields', function ((array) $allFields) {
    $allFields['name']->required = false;
});