© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
11 replies
xy

Add action button to form

I'd like to add an action button in the form of a resource. The idea is to use that action method to import details from a model upon clicking it.

    public static function form(Form $form): Form
    {
        return $form
            ->schema([

             // Add action here 
            ]);
    }
    public static function form(Form $form): Form
    {
        return $form
            ->schema([

             // Add action here 
            ]);
    }


I've tried
Action::make('edit')->button()
Action::make('edit')->button()


in a Section component which results in the following error:

 Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Actions\Action given
 Filament\Forms\ComponentContainer::Filament\Forms\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Forms\Components\Component, Filament\Actions\Action given
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

Add Button Form Action
FilamentFFilament / ❓┊help
2y ago
Add Button Action To TextColumn
FilamentFFilament / ❓┊help
2y ago
Add CSS To Action Button
FilamentFFilament / ❓┊help
2y ago
form action button alignment
FilamentFFilament / ❓┊help
8mo ago