© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
KiaBoluki

Add action buttons to custom page with HasForms

Hi everyone,

I have a question regarding the best method to add action buttons, such as "Create" to my custom page. I've been searching through the documentation, but couldn't find any relevant information.

I attempted to implement the
HasFormActions
HasFormActions
interface on my
Page
Page
and added the
getCachedFormAction()
getCachedFormAction()
method. However, I'm unsure how to properly render these buttons in the view.

If anyone has any insights or suggestions, I would greatly appreciate your help.

Thank you!

class Edit extends Page implements HasForms, HasFormActions
{
    use InteractsWithForms;

// ... 

    public function getCachedFormAction(string $name): ?\Filament\pages\Actions\Action
    {
        if ($name === 'submit') {
            return \Filament\pages\Actions\Action::make('submit')
                ->action('submit')
                ->icon('heroicon-s-save');
        }
            return null;
        }
    }
class Edit extends Page implements HasForms, HasFormActions
{
    use InteractsWithForms;

// ... 

    public function getCachedFormAction(string $name): ?\Filament\pages\Actions\Action
    {
        if ($name === 'submit') {
            return \Filament\pages\Actions\Action::make('submit')
                ->action('submit')
                ->icon('heroicon-s-save');
        }
            return null;
        }
    }


and my view :

<x-filament::page>
   
        {{ $this->form }}

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

</x-filament::page>
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

How to Add Custom Action Buttons to RelationManager Modal
FilamentFFilament / ❓┊help
3y ago
Custom page with action
FilamentFFilament / ❓┊help
3y ago
Adding Action Buttons to Custom Page for Form Navigation
FilamentFFilament / ❓┊help
2y ago
Wrap the action buttons on a custom page
FilamentFFilament / ❓┊help
3y ago