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 to Screen bas...
Power Apps
Answered

Navigate to Screen based on Gallery Item Selection,Thisitem.TargetScreen.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
I have created Menu's Collection and bind to gallery control. I want to open respective screens on click of Gallery items. I have tried below option, 1.Navigate(ThisItem.TargetScreen,Transition.None); 2.Set(TargetScreen,Text(POSCustomer.Selected.TargetScreen)); Navigate(TargetScreen,Transition.None); Getting errors- 1.The function 'Navigate' has some invalid arguments. 2.The First argument of 'Navigate'should be a control or screen. Please help for this.

Menu.png
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey!

     

    Currently navigation to a certain screen feature is not supported by powerapps, The first argument of the Navigate function must be a Screen Name, it cannot be a variable.
     
    But, As a workaround, if you have a certain number of screens, then you can apply a condition based on the matching screen name. Please have a look at the screenshot below: 
     
    MicrosoftTeams-image (20).png

     

    If(ThisItem.Value = "Screen1",Navigate(Screen1,ScreenTransition.Fade), ThisItem.Value = "Screen2",Navigate(Screen2,ScreenTransition.Fade),ThisItem.Value = "Screen3",Navigate(Screen3,Fade))
     
    Here, ThisItem.Value is the Screen Name that is selected as part of Gallery Item, please replace this with "ThisItem.TargetScreen" as used in your collection.
     
    Hope this helps. 
     
    Thanks, 
     
    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!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard