© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
10 replies
S. Mert ÖZTÜRK

how to, livewire form save button to header in filament custom page

Hi,

As I summarized in the title, I have a livewire form and I have a submit button in the form. I want to move this submit button to the header (as seen in the picture), how can I do it?
Ekran_goruntusu_2023-10-18_173318.png
Solution
For example. Header action:
Action::make('saveForm')
    ->action(function () {
        $this->dispatch('saveFormData');
}),
Action::make('saveForm')
    ->action(function () {
        $this->dispatch('saveFormData');
}),

Then in component:
#[On('saveFormData')]
public function saveFormData()
{
    ## Create record or something;
    dd($this->form->getState());
}
#[On('saveFormData')]
public function saveFormData()
{
    ## Create record or something;
    dd($this->form->getState());
}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Livewire form submit button to Custom page header
FilamentFFilament / ❓┊help
3y ago
Add submit button to filament form in custom page
FilamentFFilament / ❓┊help
2y ago
Building Custom Form in Filament Page
FilamentFFilament / ❓┊help
12mo ago
Custom "Save" button to create or save a form
FilamentFFilament / ❓┊help
2y ago