#Adding a button to the footer of the form
3 messages · Page 1 of 1 (latest)
in the create page
public function getFormActions(): array
{
return [
...parent::getFormActions(),
Action::make('customAction')
->action(function () {
//call your modal
}),
];
}
if you are using https://filamentphp.com/docs/3.x/support/blade-components/modal
try
`$this->dispatch('open-modal', id: 'modalId');
or
Action::make('customAction')
->dispatch('open-modal', ['id' => 'modalId'])