© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
23 replies
Lara Zeus

custom page action not opening

I have a custom page for a resource

trying to add an action at the end of the form
adding it to
getHeaderActions
getHeaderActions
work fine but not as asepreate action

even adding
<x-filament-actions::modals />
<x-filament-actions::modals />
no effect
not sure what i am missing!

my Page:
protected function getHeaderActions(): array
    {
        // this dose ork
        return [
            Action::make('get-link-head')
                ->requiresConfirmation()
                ->action(function () {
                    dd(9);
                }),
        ];
    }

    public function getLinkAction(): Action
    {
        // this dose not work
        return Action::make('get-link')
            ->requiresConfirmation()
            ->action(function () {
                dd(9);
            });
    }
protected function getHeaderActions(): array
    {
        // this dose ork
        return [
            Action::make('get-link-head')
                ->requiresConfirmation()
                ->action(function () {
                    dd(9);
                }),
        ];
    }

    public function getLinkAction(): Action
    {
        // this dose not work
        return Action::make('get-link')
            ->requiresConfirmation()
            ->action(function () {
                dd(9);
            });
    }


view:
<x-filament-panels::page>
    <x-filament-panels::form>
        <div>
            {{ $this->form }}
        </div>

        <div class="text-center">
            {{ $this->getLinkAction }}
            <x-filament-actions::modals />
        </div>
    </x-filament-panels::form>
</x-filament-panels::page>
<x-filament-panels::page>
    <x-filament-panels::form>
        <div>
            {{ $this->form }}
        </div>

        <div class="text-center">
            {{ $this->getLinkAction }}
            <x-filament-actions::modals />
        </div>
    </x-filament-panels::form>
</x-filament-panels::page>
Solution
Heh I had similar issues with custom actions. Super-dumb, but can you rename
Action::make('get-link')
Action::make('get-link')
to
Action::make('getLink')
Action::make('getLink')
?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Action in custom page
FilamentFFilament / ❓┊help
17mo ago
Custom page with action
FilamentFFilament / ❓┊help
3y ago
Action modal not opening
FilamentFFilament / ❓┊help
3y ago
[Filament V4] Custom page action not executing
FilamentFFilament / ❓┊help
7mo ago