Add custom button in Relation manager form
Hello
I am trying to add a new button to my relation manager form beside create and close
It seems quite tricky because this block of code doesn't work for me actually
4 Replies
Actually, the relation manager table has a
headerActions([..])
You need to add an extraModalFooterActions to the CreateActionThank you sir. I will look at it
did it work?
Unfortunetly no !!
I did follow to documentation but i am receiving this error :
"Method Filament\Forms\Components\Actions\Action::table does not exist."
This is my code:
->headerActions([
Action::make('create')
->form([
// ...
])
// ...
->extraModalFooterActions(fn(Action $action): array => [
$action->makeModalSubmitAction('createAnother', arguments: ['another' => true]),
])
])