Set up form with conditional steps

So what i need is the code for this multistep form been trying for hours but can’t figure out what to do. If user clicks selects the satisfaction 1, 2, or 3 then it will take them to step 3 and they can just submit the form and if they select 4, 5 form will work normal will go to step 2 and then step 3 and that’s it.

Step 1:

Step 2:

Step 3:

Would appreciate if someone can provide the code for this.

1 Like

While I do not have code I can provide for this exact page, I can suggest a approach. Assuming each “page” is stored in a MultiStateBox you can store the next and previous page index within variables.

If the user clicks on the RadioButtonGroup that triggers the condition, use onChange() to save the appropriate next page within the variable.

Finally, you can use the next and previous page index variables and changeState() to configure the arrows to change to the correct index.