Wizard Form display a modal after submit instead a redirect
Hello all ! I made a 5-step Wizard form that works well. I used the
mutateFormDataBeforeCreate()
mutateFormDataBeforeCreate()
and
handleRecordCreation()
handleRecordCreation()
methods in the Creation Class. Furthermore, I also used the
->submitAction()
->submitAction()
method to render a custom button. Everything works fine for creation and when the form is submitted and everything works, I'm redirected to the resource view page.
My question is: instead of redirecting to the resource page, is it possible to display a modal with informative text and a custom link instead? I don't see anything in the Wizard class that would allow me to use a modal. Do you know if this is possible? And if so, could you give me some advice? Thanks in advance!
Solution
Perfect, I've found it If anyone is looking to do the same, here's how I did it: