-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello,
I have code:
Select::make('Template', 'template2')
->options([
'1' => 'Template 1',
'2' => 'Template 2',
]),
TinymceEditor::make('Notes', 'notes')
->fullWidth()
->rules('required')
->dependsOn('template2', function (TinymceEditor $field, NovaRequest $request, FormData $formData) {
$tpl = $formData->get('template');
$field->value = ('<h1>Template '.$tpl.'</h1>');
})but changing Template does not result changing content of Tinymce editor. Instead of, dependsOn looks like run on refresh button.
Metadata
Metadata
Assignees
Labels
No labels