Back to 'previous' buttons

gavinjharris shared this question 5 years ago
Answered

I would like to set my back button to navigate back to the previous 'panel' not page.


I have two pages 'home' and 'product page'. Within the product page I use multiple states so my back button has to backtrack to the previous panel not page. Is this possible? So far I can only see page.


Thanks.

Comments (1)

photo
1

Each time yo change the active panel, you can populate a variable with the name of the previous panel. Then when you need to go to the previous panel instead of create a navigation interaction, check the variable value an create a "Set Active Panel" interaction to the appropiate panel.