F
Filament2mo ago
kazi94

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
No description
4 Replies
LeandroFerreira
LeandroFerreira2mo ago
Actually, the relation manager table has a headerActions([..]) You need to add an extraModalFooterActions to the CreateAction
kazi94
kazi94OP2mo ago
Thank you sir. I will look at it
LeandroFerreira
LeandroFerreira2mo ago
did it work?
kazi94
kazi94OP2mo ago
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]), ]) ])
Want results from more Discord servers?
Add your server