Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

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.

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Navigate to Screen based on Gallery Item Selection,Thisitem.TargetScreen.

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 52 Super User 2025 Season 1

Overall leaderboard