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 / How do I create a link...
Power Apps
Answered

How do I create a link to navigate to another screen using a name from a Gallery item?

(0) ShareShare
ReportReport
Posted on by 59

I have a gallery with a list of locations that is being pulled from a data source. What I would like to do is when users click on the text for the location (i.e. K1121), it will navigate to a screen with the same name. So I want to pass the name (ThisItem.facloc) in the scripting in the OnSelect property.

 

Navigate(ThisItem.FacLoc, ScreenTransition.Fade)

 

Obviously doing something wrong...help please.

example-powerapps.png
Categories:
  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @gbach2290 

     

    Identify all possible screens that users can navigate to based on the FacLoc values.
    Create a Switch statement that maps each FacLoc value to the corresponding screen.
    Update the OnSelect property of the text control or button within the gallery template to use this Switch statement for navigation.

     

    Try this formula,

     

    Switch(
    ThisItem.FacLoc,
    "K1121", Navigate(Screen_K1121, ScreenTransition.Fade),
    "K1122", Navigate(Screen_K1122, ScreenTransition.Fade),
    // ... Add additional cases for each FacLoc value and corresponding screen
    Navigate(Screen_Default, ScreenTransition.Fade) // Default case if FacLoc does not match
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • Verified answer
    gbach2290 Profile Picture
    59 on at

    Much appreciated!!!

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    If my solution helps, accept it solution and close this thread to assist others looking for the same question.

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard