Page 1 of 1

How to change what is displayed on a page depending on what the page was previous.

Posted: Tue Jan 27, 2015 8:10 pm
by Mark6921260

I am trying to cut down on the number of pages in my app.
I have two pages, each represents a different version of a certain product. The user can choose 1 of 2 ways to set up each device on both pages.
See example image below- my app currently has two of these pages:
Image

Instead of having two pages for both versions for user to navigate to after choosing which set up (a total of 4 pages). I want to have only 2 pages that look like the following:

Image

My question: Is it possible to make a page display differently depending on what page you navigated to it from.
The only things that will be different from each page are the items available to be selected in the Select element and the image displayed on the page.


How to change what is displayed on a page depending on what the page was previous.

Posted: Tue Jan 27, 2015 9:13 pm
by Alena Prykhodko

Hello,

Yes, you can create a localstorage variable which saves the state of your page or selection and based on this variable you can choose what to select.
All this should be done basically with javascript.

Please keep in mind, custom code writing is outside the support scope.