F
Filament5mo 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
LeandroFerreira5mo ago
Actually, the relation manager table has a headerActions([..]) You need to add an extraModalFooterActions to the CreateAction
kazi94
kazi94OP5mo ago
Thank you sir. I will look at it
LeandroFerreira
LeandroFerreira4mo ago
did it work?
kazi94
kazi94OP4mo 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]), ]) ])

Did you find this page helpful?