© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
3 replies
Alnuaimi

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(),
    ];
}
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!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

CreateAction modal customization
FilamentFFilament / ❓┊help
2y ago
How to make FilamentPHP faster
FilamentFFilament / ❓┊help
3y ago
CreateAction::make()
FilamentFFilament / ❓┊help
3y ago
How to include a different resource CreateAction in resource CreateAction?
FilamentFFilament / ❓┊help
2y ago