[Solved] How do I programmatically navigate to the previous screen?

now my project have the 4 page(1,2,3,cat) , in (1,2,3)page have a button to navigate to cat page. if in page 1 click the button to cat page, i want go back to previous page(page1). if in page 2 click the button to cat page, at the same time can go back to previous page(page2) How to do that

When you navigate to the cat page, set a variable value to the page number you are coming from. Then, on the cat page, check the value of that variable and if it’s 1, navigate to 1; if it’s 2, navigate to 2; if it’s 3, navigate to 3.

i don’t understand used what code to do that. Can help me write the code in my sample project? Thank you

https://x.thunkable.com/copy/b561eb5ed32059afd918f0f37dfcf52a

This is my sample project link, thank you

See this modified project:

https://x.thunkable.com/copy/46a296f1de4096d8c93ef4444d71f111

3 Likes

thank you for your help!!!

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.