© 2026 Hedgehog Software, LLC

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

Display confirmation modal after state updated

Hey everyone, I'm trying to implement confirmation modal functionality when form input state changes like:
Flatpickr::make('time')
->animate()
->time()
->live()
->required()
->visible(fn (Get $get) => $get('date') !== null)
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
    if (Artist::find($get('../../artist_id'))->isSlotReserved($get('date'), $state)) {
        Notification::make()
        ->title('This slot is not available!')
        ->danger()
        ->seconds(5)
        ->send();
    }
})
Flatpickr::make('time')
->animate()
->time()
->live()
->required()
->visible(fn (Get $get) => $get('date') !== null)
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
    if (Artist::find($get('../../artist_id'))->isSlotReserved($get('date'), $state)) {
        Notification::make()
        ->title('This slot is not available!')
        ->danger()
        ->seconds(5)
        ->send();
    }
})

Instead of a simple notification I want to show the confirmation modal to user to verify if he wants to continue with duplicate entry.
Is it possible? Thank you for your help!
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

Opening a confirmation modal after validation.
FilamentFFilament / ❓┊help
3y ago
Checkbox Confirmation Modal
FilamentFFilament / ❓┊help
13mo ago
Custom confirmation modal
FilamentFFilament / ❓┊help
2y ago
toggleColumn with confirmation modal
FilamentFFilament / ❓┊help
2y ago