© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
_𝕰𝖋x

Function to submit form

I would like to submit the form after the user updates a select field. I tried it with live() but after updating the select field and reloading the page (without pressing save button) it is not being updated in the database
Solution
Are you using the panel builder?

->afterStateUpdated(function (\Livewire\Component $livewire, string $operation) {
    if ($operation == 'edit') {
        $livewire->save();
    }
})
->afterStateUpdated(function (\Livewire\Component $livewire, string $operation) {
    if ($operation == 'edit') {
        $livewire->save();
    }
})
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

Wizard form submit
FilamentFFilament / ❓┊help
2y ago
Unable to create authenticated Form submit
FilamentFFilament / ❓┊help
3y ago
Filament form redirect to view on submit
FilamentFFilament / ❓┊help
3y ago
validation.in on form submit
FilamentFFilament / ❓┊help
6mo ago