add requiresConfirmation to save action on Edit - Resource
Hey there, im trying to add a conditional conformation message when the user clicks the save button on the edit form. Any help?
Solution:Jump to solution
```php
protected function getSaveFormAction(): Action
{
return parent::getSaveFormAction()
->submit(null)...
9 Replies
Tried this without any luck
Same question in <#1098265690588319754> never answered
The save action is already defined separately so you’re not actually overriding it by calling it ‘save’.
You should be able to do something like this instead of creating a new save action.
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
Still not working :/
This works for the create form but I cannot find an equivilant for the edit form acction
you should use
getSaveFormAction
instead of getCreateFormAction
Solution