© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
17 replies
MazeEzam

Form ->live() Not Working

HI Again,

I have a field that the user needs to enter an increase value, I want this value to save on blur. I believe after reading the docs ->live() will do the job. I have the below code and it doesn't save to the Data Base on Blur but the afterStateUpdated() function does work?

Am I missing something obvious here??

Forms\Components\TextInput::make('increase_percent')->label('% Increase') 
                                ->numeric()
                                ->inputMode('decimal')
                                ->live(onBlur: true)
                                ->afterStateUpdated(function (?string $state, ?string $old) {
                                    Notification::make()
                                            ->title('Price Increase Adjusted From ' . $old . ' to' . $state)
                                            ->success()
                                            ->send();
                                })
                            ]),
Forms\Components\TextInput::make('increase_percent')->label('% Increase') 
                                ->numeric()
                                ->inputMode('decimal')
                                ->live(onBlur: true)
                                ->afterStateUpdated(function (?string $state, ?string $old) {
                                    Notification::make()
                                            ->title('Price Increase Adjusted From ' . $old . ' to' . $state)
                                            ->success()
                                            ->send();
                                })
                            ]),
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

Form Component Toggle live or reactive() not working
FilamentFFilament / ❓┊help
3y ago
Widget Live form
FilamentFFilament / ❓┊help
3y ago
live() not working inside Tabs
FilamentFFilament / ❓┊help
2y ago
`->live()` Not working as `->reactive()`
FilamentFFilament / ❓┊help
3y ago