How to call the second action after submitting the first action-form?
Moin together.
I have on an edit page of a resource 4 header-actions with modal forms. I want to offer the possibility to jump directly to the modal form of the next header-action after submitting one of these forms.
The wizard steps are not enough for me, because I don't see (at least not yet) a possibility to save the data already when changing the step.
I can call
->extraModalFooterActions()
for example ->makeModalSubmitAction()
to save the form. But how do I get it to call the next modal directly afterwards without defining the whole form as sub-modal again? Finally, I have defined the 4 header-actions with their forms on the page.
I have tried ->extraAttributes(['wire:target' => ''])
and various functions, so far without success.
Thanks in advance for the suggestions.4 Replies
Solution
Thank you very much, I'll try this.
This works very fine! Just had to use Action::make() instead of $action->makeModalSubmitAction()
@johny7 can you provide an example of your working code, help the next person who stumbles across this?
Of course, here you are: