Adapt the behaviour of back button based on user's navigation

Hey there,

I’m trying to add a condition on a back button of my user flow.
My product is a multi-steps flow. Steps are common to all users up to a certain step. Depending on the response to this step, certain subsequent steps are skipped.

A user for whom the steps are skipped should not be able to navigate back to these steps. When he/she clicks back, the behaviour must be to be redirected to the step seen previously.

I tried it but I did not manage to add a condition to the workflow for the “back” button that allows me to have the button working as expected.

Any ideas? Thanks a lot!

Easiest solution is to use go to page SPA style navigation and pass with Params or content type.

It does look like you’re using “go to page” action so I’m assuming you’re using that nav type so you can just use “go to previous page” action instead.

Rather If you’re using states to go through the form navigation when next is clicked you can store the previous step value so that you can refer to it when clicking back.

1 Like

Indeed go to previous page option is working fine. Actually I only used the go to page X so far and didn’t know about this more precise “go to previous page” action.

Thanks a lot man

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.