© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
ericmp #2

DateTimePicker afterStateUpdated

I want to execute a fn when I change the value of the date time picker

DateTimePicker::make('publish_date')->required()->default(now())->afterStateUpdated(function (\Closure $set, $state) {
    dd('updated');
}),
DateTimePicker::make('publish_date')->required()->default(now())->afterStateUpdated(function (\Closure $set, $state) {
    dd('updated');
}),


but the dd is never executed when i change it's value. how to do it properly? (im not using admin panel)
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

Using both afterStateUpdated AND afterStateUpdatedJs
FilamentFFilament / ❓┊help
8mo ago
DateTimePicker
FilamentFFilament / ❓┊help
2y ago
Native DateTimePicker
FilamentFFilament / ❓┊help
2y ago