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 / Navigate from label value
Power Apps
Answered

Navigate from label value

(0) ShareShare
ReportReport
Posted on by 4

Hi!

I have an app which has many pages. I want to navigate to a page for which I get value from Microsoft List. How to put that value into a Navigate function? Let's say I have a label which name is LabelNavigation and the Text value is MainPage. How I can use that data to make a working navigation. Navigate(LabelNavigation.Text) does not obviously work...

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,576 Most Valuable Professional on at

    Hi @Tuomas ,

    You cannot refer to elements such as screens dynamically, but if you had a collection (example only) run at App OnStart

    ClearCollect(
     colScreens,
     {Item: "Main", ScreenName: MainScreen},
     {Item: "Browse", ScreenName: BrowseScreen},
     {Item: "View", ScreenName: ViewScreen}
    )
    

    You could do this

    With(
     {
     wScreen:
     Lookup(
     colScreens,
     Item = NavigationLable.Text
     ).ScreenName
     },
     Navigate(wScreen)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Tuomas Profile Picture
    4 on at

    Thank you for a quick answer! I still refuse to believe that so complex solution is the only answer for such a simple problem 😕

  • WarrenBelz Profile Picture
    156,576 Most Valuable Professional on at

    @Tuomas ,

    I can assure you it is - you simply cannot refer to these (and many other) Power Apps elements dynamically (we would have found a way before now otherwise).

    The problem is that the Text "MainScreen" is a completely different value to the Screen MainScreen and are not interchangeable. Other than a few limited exceptions (of which screens are not one), you have to hard-code any reference to things like Screens, Fields, List names and Controls and their attributes, but this can be in Collections and Variables referred to such as my example.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

  • WarrenBelz Profile Picture
    156,576 Most Valuable Professional on at

    Hi @Tuomas ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard