Table action with form - confirmation before submit
Hello,
I am trying to add confirmation (or any kind of modal action) when user clicks submit on a table action with a form.
I have tried with extraModalFooterActions, that contains requiresConfirmation(), which when clicked does show the confirmation (but closes the parent modal, i thought it just displays over it?), but then cancelParentActions() doesn't work, reopening the parent modal again.
Code for extraModalFooterActions:
Has anyone had similar issues, and if so how did you resolve it?
Solution:Jump to solution
inject the action
```php
->action(function (Action $action) {
$action->cancelParentActions();...
4 Replies
Solution
inject the action
Hey, thanks for the help, it works now 🙈 missread the docs...
Hijacking the thread, is there a way to pass parent form data into child? Currently having issues with this.
open a new topic and explain what you are trying to do please