web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Navigate to Screen bas...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard