How to Make CreateAction Display as a Modal in FilamentPHP
Hi everyone,
I'm trying to set up CreateAction in a ListRecords page so that it appears as a modal, but the form doesn't pop up in a modal as expected.
Here’s my code:
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make()
->modalHeading('Add New Record')
->modalButton('Add')
->modalWidth('lg')
->color('primary')
->icon('heroicon-o-plus')
->requiresConfirmation(),
];
}
I've customized the title and size, but it’s still not working. Are there any additional steps or specific settings I should check?
Thanks in advance!2 Replies