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 / Create a roaming varia...
Power Apps
Answered

Create a roaming variable coming in from different screens to a specific screen

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 5 screens that navigate to the 6th screen. 

On the 6th screen i need a label that tells me what screen i entered the 6th screen from (i.e.  screen 1 or 2 or 3 or 4 or 5)

I would like a variable that gets updated eveytime this happens ?

 

Thanks

Dave 

Categories:
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    So here is how I would handle that.  Start with your first screen and set a global variable to this value:

     

     

    Set(varScreen, App.ActiveScreen)

     

     

    In the 6th screen have a label that shows what screen you came from using this varScreen.Name.   In your navigation formulas that take you to the 6th screen, set varScreen to the current active screen before the navigate commands

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Another option to consider is just pass the context to the screen in your Navigate formula.

    Ex:

    Navigate(newScreen, {referringScreenName: App.ActiveScreen.Name})

    If you are consistent on all your navigates, then your screens will all have a referringScreenName context variable to use.

    And, then your label Text property can be: referringScreenName

     

    I hope this is helpful for you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard