© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
2 replies
Tio Átila

Modal confirmation before click save button in modal

Good Morning, everyone how are you?

I need a help, I have the table where i have the edit action.
when click save I nedd to show the modal confirmation before the saving information in database, because if the person accept I need cancel the flow sign the contract and starting the new flow, generating new contract and sending try again to subjects

This is my actualy Action Edit

Tables\Actions\EditAction::make()
                        ->modalWidth(MaxWidth::ScreenExtraLarge)
                        ->closeModalByClickingAway(false)
                        ->closeModalByEscaping(false)
                        
                        ->mutateFormDataUsing(function (array $data) {
                            return PrepareDataToSaveContractInformation::handle($data, $this->record->id);
                        })->after(function ($record) {
                            AuditMoviment::create(
                                [
                                    'user_id' => auth()->user()->id,
                                    'register_id' => $record->id,
                                    'origin' => OriginEnum::STUDENT_CONTRACT_INFO,
                                    'action' => ActionEnum::UPDATED,
                                ]
                            );
                            (new \App\Actions\Student\Contracts\CreateContractStudent())->execute($record);
                        }),
Tables\Actions\EditAction::make()
                        ->modalWidth(MaxWidth::ScreenExtraLarge)
                        ->closeModalByClickingAway(false)
                        ->closeModalByEscaping(false)
                        
                        ->mutateFormDataUsing(function (array $data) {
                            return PrepareDataToSaveContractInformation::handle($data, $this->record->id);
                        })->after(function ($record) {
                            AuditMoviment::create(
                                [
                                    'user_id' => auth()->user()->id,
                                    'register_id' => $record->id,
                                    'origin' => OriginEnum::STUDENT_CONTRACT_INFO,
                                    'action' => ActionEnum::UPDATED,
                                ]
                            );
                            (new \App\Actions\Student\Contracts\CreateContractStudent())->execute($record);
                        }),
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

Confirmation modal before action.
FilamentFFilament / ❓┊help
3y ago
Confirmation modal before Sign out
FilamentFFilament / ❓┊help
3y ago
Save and Create New button in modal
FilamentFFilament / ❓┊help
3y ago
Validate and save before opening modal
FilamentFFilament / ❓┊help
2y ago