© 2026 Hedgehog Software, LLC

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

Livewire form submit button to Custom page header

Hi,

I have a form, I want to move the submit button of this form to the header. For this, I created an action in the header of my filament page, but how do I assign the function to this button?

My Filament Page :
protected function getHeaderActions(): array
    {
        return [
            Action::make('update')
                ->requiresConfirmation()
                ->action(fn () => $this->update()),
        ];
    }
protected function getHeaderActions(): array
    {
        return [
            Action::make('update')
                ->requiresConfirmation()
                ->action(fn () => $this->update()),
        ];
    }


Livewire comp:
public function update(): void
    {
        Settings::first()->update($this->form->getState());
    }
public function update(): void
    {
        Settings::first()->update($this->form->getState());
    }


livewire view:
<form wire:submit="update">
        {{ $this->form }}

        <x-filament::button type="submit" class="mt-6 w-full">
            <span class="block" wire:loading.class="hidden"> Kaydet </span>
            <span class="hidden" wire:loading wire:loading.class="block">Kaydediliyor...</span>
        </x-filament::button>
    </form>
<form wire:submit="update">
        {{ $this->form }}

        <x-filament::button type="submit" class="mt-6 w-full">
            <span class="block" wire:loading.class="hidden"> Kaydet </span>
            <span class="hidden" wire:loading wire:loading.class="block">Kaydediliyor...</span>
        </x-filament::button>
    </form>


And after submit i get this:
Method App\Filament\Pages\Settings::update does not exist.
Method App\Filament\Pages\Settings::update does not exist.
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, livewire form save button to header in filament custom page
FilamentFFilament / ❓┊help
3y ago
Add submit button to filament form in custom page
FilamentFFilament / ❓┊help
2y ago
Custom form page submit button isn't styled
FilamentFFilament / ❓┊help
3y ago
Submit a form with a header Action on a custom page
FilamentFFilament / ❓┊help
7mo ago