Form builder - Programmatically step with Wizard?

Good day,

I have a two part question

  1. Is there a way for me to programmatically go to the next step in the Wizard component? My last step is just a success page, I know I can use the "afterValidation" lifecycle hook to process a payment on that particular step, i then want to take the user to the last step (success page) once that is done. How can I do this?
  2. I know I can change the label for all the previous and next step buttons using "nextAction", am I able to do this on an individual step though?
Any help is greatly appreciated!
Was this page helpful?