web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Identify Previous Scre...
Power Apps
Answered

Identify Previous Screen For Back Button (Alternative to "back ()" Function)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone, 

 

I currently have an app with a Back button on a screen that holds a glossary of 3D objects. The button uses the "back ()" function to navigate to the previous screen. This button works in edit mode, but will not work when using the published app from a computer, tablet, or phone. The page will display a "page not responding" message after trying to execute for a while, probably due to the large amount of 3D objects the screen holds. I can't use a simple "Navigate (X page)" function, because the user will be accessing the glossary from different screens, and won't be returning to the same screen each time.

 

So, I am looking for a solution to the problem, perhaps creating a global variable or a collection to somehow identify the previous screen? I am VERY new to PowerApps, so any help with this would be greatly appreciated!

fail to load.PNG
snip1.PNG
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,136 Most Valuable Professional on at

    If you make a collection of objects that has the previous screen and an ID or keyname at startup you can then save the current screen ID when you navigate to another screen.  Then use a lookup on that ID to go back.

    #in OnStart
    ClearCollect(myScreens,{id:1,Screen: Screen1},{id:2,Screen: Screen2},{id:3,Screen: Screen3})
    
    #OnSelect to navigate to screen 2
    Navigate(LookUp(myScreens,id=2).Screen,ScreenTransition.Fade);Set(BackScreen,LookUp(myScreens,Screen=Screen1).id)
    
    #OnSelect to navigate back
    Navigate(LookUp(myScreens,id=BackScreen).Screen,ScreenTransition.Fade);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 538

#2
WarrenBelz Profile Picture

WarrenBelz 420 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard