Show the confirmation model on the submit button of the model form
I want to show the confirmation model on the submit button of the model form
4 Replies
are you using a simple resource and would you like to add a confirmation before creating the record?
Actions\Action::make('submitjob')->label('Submit Job')
->modalWidth('lg')
->modalHeading(('Submit Job'))
->modalSubheading(function (){...})
->modalFooter(function () use (){...}->modalButton(('Submit Job'))
->form([...])
->action(function (array $data) use ($job_details) : void {...}),
I did it using pages
https://x.com/leandrocfe/status/1800169819880472924
Maybe you can achieve it using this way
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#chaining-actions
and in v3
Leandro Ferreira (@leandrocfe) on X
💡 Filament Tip: If you want to enhance the Create Form by adding a confirmation modal before submission, use the following code snippet 👇
Twitter
I want to add in v2