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 / Conditional Navigation...
Power Apps
Unanswered

Conditional Navigation based on Gallery Selection

(0) ShareShare
ReportReport
Posted on by 25

Hi there,

 

I have a gallery containing many names of people within a team. I want to be able to set conditional navigation so that if I select say:

 

John Smith

 

in the table, the OnSelect function would be:

 

Navigate(John Smith)

 

Leading to a seperate screen for that person which I've already made. I've tried to use Navigate(Gallery.Selected.Name) but the formula results in an error. Would anyone be able to suggest how I could do this?

 

N.B. There are too many people in this list to make creating a multiple condition IF statement feasible, and I want to be able to add more people in future. 

 

Many thanks!

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @RossBardwell 

     

    In the Navigate function, the argument should be a valid screen name, you can add a Switch statement to achieve this directly. But this way, you have to pass the value for each person in the list.

    Sample Expression:
    Navigate(Switch(Gallery.Selected.Name,"Screen2",Screen2,"Screen3",Screen3,"Screen4",Screen4))

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • RossBardwell Profile Picture
    25 on at

    Thankyou @yashag2255 for the suggestion. It certainly beats my backup plan of multiple nested IF functions.

     

    I was still hoping for something a little more adaptive as the person list changes and adapts, perhaps I am looking for too much capability from the Powerapp interface.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard