Wizard conditionally hiding next step
Have an use case of a wizard that I need to confirm data before passing to the next step (on some steps).
Is there a way to do that?
I've tried to set the hidden on the action (screenshot), but it's not working:
Also is there a way to know on which step we are?
5 Replies
you can use
->beforeValidation()
->afterValidation()
@leandro_ferreira thank you for the help. But I don't know how can I use those callbacks to prevent the user from going to the next step.
maybe you can throw an exception... for example
Not sure about
->nextAction()
. Maybe you can customize the ->action methodIs it possible to redirect to a particular step?
Hum not sure. I've ever done this using alpine. I think you can do this. I'll try this and let you know