How to add requiresConfirmation() into modalSubmitAction() in Action
Hello,
I have an action in my ListRecords page who open a modal and I need to have a modal of confirmation when the user click on the Button Submit.
It doesn't work because it's a StaticAction in modalSubmitAction().
How can I do that?
Thanks
5 Replies
Is this v2 or v3?
This is for v3
I have a code like this who works but I can't get datas from parent form :
An idea?
Or a method to call parent action?
Try this:
Thank's @Patrick Boivin, it works! I've find an another way to do that with :
Add this action in modal with modalSubmitAction, etc... :
And create a function who called when the submit button triggered with passing $data to $arguments :
But I prefer your method!
There is no cleaner native method to retrieve the parent's form? Or execute the parent's action from children like this :
There is no cleaner native method to retrieve the parent's form?I'm not really sure... nested actions are still new for me too