Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 0BW8t1c+wwNpkObjmA7Wzd
Power Apps - Building Power Apps
Answered

How to get the name of active screen

Like (2) ShareShare
ReportReport
Posted on 6 Mar 2019 10:49:58 by 30

I want to show the active screen name in a label.

 

Is there a way to get the name of the active screen? I can't see any obvious 'non manual' way to do it.

 

Thanks

Categories:
  • Franklin5 Profile Picture
    2 on 15 May 2024 at 18:56:31
    Re: How to get the name of active screen

    Inspired by the collective genius here, I’ve cooked up a simple hack. It’s like when you make a screen template your secret ingredient and replicate it more than a favorite recipe. Just add a pinch of variable to the OnVisible property, linking it to the screen’s name, and voilà!

     

    Imagine your template is “TemplateScreen.” The formula in OnVisible is:    "Set(varScreenName, TemplateScreen.Name)"

     

    Every copy will keep calling back to name of the screen it is in, even if you decide to rename it to “Display-o-Matic 3000.” Might need a quick refresh to see the trick in action, though. 

  • Lydias Profile Picture
    4 on 14 Jul 2023 at 10:20:30
    Re: How to get the name of active screen

    If you just want to show the name in a label, then this would work: create a textlabel on your screen and have the textfield be "Parent.Name".

     

  • Lydias Profile Picture
    4 on 14 Jul 2023 at 10:14:11
    Re: How to get the name of active screen

    Would also want to know this, I tried creating a parameter with the screenname but it doesn't seem to work with the Navigate function.

  • Bakertc384 Profile Picture
    16 on 06 Feb 2023 at 14:44:55
    Re: How to get the name of active screen

    This is within the components part of power apps 

  • Bakertc384 Profile Picture
    16 on 06 Feb 2023 at 14:43:22
    Re: How to get the name of active screen

    hey, 

     

    i did follow this tutorial to the letter and still it did not recognise the app.activescreen function what so ever. 

     

    the attachments does not show the red line under "app.activescreen.name" but it is there 

  • NPPlatform Profile Picture
    606 Super User 2025 Season 1 on 06 Feb 2023 at 14:06:59
    Re: How to get the name of active screen

    I'm not certain I completely understand your problem. By "wanted the select page to highlight a colour dependant on the screen they are on", do you mean a highlight like in the image below? If so, this image is from a tutorial you could follow to create this effect (Thank you @mdevaney !). The tutorial can be found here. 

     

    powerapps-sidenav-17.gif


    Source: 
    https://www.matthewdevaney.com/power-apps-navigation-menu-component/

  • Bakertc384 Profile Picture
    16 on 06 Feb 2023 at 13:20:24
    Re: How to get the name of active screen

    My issue was not app.activescreen.name whilst within the app side, 

     

    i had issue when creating a customer component (menu system) and wanted the select page to highlight a colour dependant on the screen they are on.

     

    i could not pull through app.activescreen into the customer component. 

    i had a rectangle that was visible if the active screen name matched the label next to it, all labels matched and should have worked, but it did not recognise the app.active screen function at all.

    only in the app side of it  

  • NPPlatform Profile Picture
    606 Super User 2025 Season 1 on 06 Feb 2023 at 13:16:27
    Re: How to get the name of active screen

    What exactly is the problem you, @cmanning, and @Bakertc384 are experiencing? I can create a label with App.ActiveScreen.Name as the text. And when I change the 'Visible'-property of the label to "App.ActiveScreen.Name = Label9.Text" it is visible. When I change it to App.ActiveScreen.Name <> Label9.Text it becomes invisible. To me this proves that App.ActiveScreen.Name still works, both as a source for a text label and as a means to filter visibility. 

  • cmanning Profile Picture
    228 on 23 Dec 2022 at 16:46:45
    Re: How to get the name of active screen

    @Bakertc384 - I am also interested if there has been a solution or work-around for this. 

  • Bakertc384 Profile Picture
    16 on 30 Sep 2022 at 10:58:19
    Re: How to get the name of active screen

    I have an issues with app.activescreen, 

    i have a custom menu component where a component is visible based on what screen they are one. the customer component is side hamburger menu and is the same on every screen. 

    there is a collection that hold all the menu data, 

    Table(
    {
    MenuLabel: "Home",
    MenuIcon: Icon.Home,
    MenuID:1,
    ScreenNav: 'Home Page'


    when i enter say.... ThisItem.ScreenNav = app.activescreen.name in the visible property of the component 

     

    it show red line under. seems like app.active screen is no longer working, 

     

    any ideas ? 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,083 Most Valuable Professional

Leaderboard
Loading started