-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
I'd like to do something like this, but it doesn't seem to trigger anything...
SimpleRepeatable::make('Theme Templates', 'templates', [
Select::make('Theme', 'theme_id')->displayUsingLabels()
->options(fn() => $this->team->themes->pluck('name','id')),
Select::make('Template')
->dependsOn(['theme_id'],
function (Select $field, NovaRequest $request, FormData $formData) {
$field->options(Theme::find($formData->theme_id)->templates);
}
)
])->stacked(),
aghayeff, SomethingWrong, PCodrin and Norgul
Metadata
Metadata
Assignees
Labels
No labels