Variable for page just leftVariable for page just lefthttps://portal.smartbuilder.com/c/message_boards/find_thread?p_l_id=&threadId=1498022024-03-28T20:05:43Z2024-03-28T20:05:43ZRE: Variable for page just leftNick Evanshttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=1498502018-08-01T02:24:54Z2018-08-01T02:24:54ZThanks Nav, that's just what I need and a really clear explanation video. I'd encourage other 'greener' Smartbuilders (like me) to work through this video. It's a great excercise for understanding variables and lists. I was beginning to understand the former but hadn't really understood the functionality of the latter. <br /><br />Thanks again for your great support, NickNick Evans2018-08-01T02:24:54ZRE: Variable for page just leftNavdeep Dhillonhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=1498212018-08-01T00:16:43Z2018-08-01T00:16:43Z<span style="font-family: arial, helvetica, sans-serif">Hi Nick,<br />The problem you describe sounds accurate - if you use Page.onChange, it will get the current page. <br /><br />To do this, you could set up 2 variables, and on page change, store the current page in one variable (current_page_var), and then on the next page, shuffle that value from current_page_var to the other variable (last_page_var). <br /><br />However, that will only work to go back 1 page. Here's another method that is a little more involved, but allows you to go backwards all the way to the beginning of the lesson - <a href="http://share.smartbuilder.com/public/support/backbutton.mp4">http://share.smartbuilder.com/public/support/backbutton.mp4</a><br /><br />Hope that helps!<br /><br />- Nav<br /></span>Navdeep Dhillon2018-08-01T00:16:43ZVariable for page just leftNick Evanshttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=1498012018-08-01T00:01:07Z2018-08-01T00:01:07Z<span style="color: black"><span style="font-family: "Tahoma",sans-serif"><span style="font-size: 12px">Is there a way to set a global variable for the page that you've just left. The problem I have is that the sequence of pages in my program is sometimes linear but sometimes non-linear. The back button in my </span></span></span><span style="font-family: "Tahoma",sans-serif"><span style="font-size: 12px">M<span style="color: black">asters is set to take you to the previous page which is the previous page in the linear sequence. Sometimes this is appropriate, sometimes it isn't. I'm looking for a method that sets the global variable to the page name of the page as you leave it and th</span>e<span style="color: black">n the back button is programed to get that global variable to take you back to that page.</span></span></span><br /><span style="color: black"><span style="font-family: "Tahoma",sans-serif"><span style="font-size: 12px"><span style="color: black"><span style="font-family: "Tahoma",sans-serif"><span style="font-size: 12px">I've tried when page 'on change' set variable to page name but it doesn't work and I suspect I'm setting to variable to the page I've just arrived at?</span></span></span></span></span></span><br /><span style="color: black"><span style="font-family: "Tahoma",sans-serif"><span style="font-size: 12px">Any suggestions, thanks<span style="color: black"><span style="font-family: "Tahoma",sans-serif"><span style="font-size: 12px"><br /></span></span></span></span></span></span>Nick Evans2018-08-01T00:01:07Z