cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrunaVieiraPDT
Level: Powered On

Can I navigate to a screen by selecting an item from a dropdown menu?

Hi, I'm trying to make a dropdown menu with options of screens(app's), that when the name is selected you'll navigate to that specific screen. For a while now I've been searching for a solution and found someting about creating a collection first. If so, how can I make one just for this task?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

Hi


Yes you can,

Simply insert a dropdown with the values you want as items, then go to the OnChange property and add something like that :

If(Dropdown1.Selected.Value = "2"; Navigate(Screen2;ScreenTransition.Cover)) or with a switch case 🙂

 

Hope it helps

View solution in original post

Dual Super User
Dual Super User

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

Hi @BrunaVieiraPDT 

 

Can you try to use below expression:
 
Dropdown -> Items -> ["Screen1","Screen2","Screen3"]
OnChange -> Switch(Dropdown1.Selected.Value,"Screen1",Navigate(Screen1),"Screen2",Navigate(Screen2),"Screen3",Navigate(Screen3),Navigate(App.ActiveScreen))
 
This will Navigate to selected Screen. Make sure you update the screen names as per your application. Also, the names passed in Items should be same as those passed in Switch statement.
 
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!

View solution in original post

6 REPLIES 6

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

Hi


Yes you can,

Simply insert a dropdown with the values you want as items, then go to the OnChange property and add something like that :

If(Dropdown1.Selected.Value = "2"; Navigate(Screen2;ScreenTransition.Cover)) or with a switch case 🙂

 

Hope it helps

View solution in original post

Dual Super User
Dual Super User

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

Hi @BrunaVieiraPDT 

 

Can you try to use below expression:
 
Dropdown -> Items -> ["Screen1","Screen2","Screen3"]
OnChange -> Switch(Dropdown1.Selected.Value,"Screen1",Navigate(Screen1),"Screen2",Navigate(Screen2),"Screen3",Navigate(Screen3),Navigate(App.ActiveScreen))
 
This will Navigate to selected Screen. Make sure you update the screen names as per your application. Also, the names passed in Items should be same as those passed in Switch statement.
 
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!

View solution in original post

BrunaVieiraPDT
Level: Powered On

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

Thank you once again @yashag2255 !!!! Build an app without knowing much is really hard Smiley Sad

Katrinnila29_
Level: Powered On

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

As you mentioned "Navigate(App.ActiveScreen))"

 

Where do I get the "APP" from App.ActiveScreen?

because it showed an error.

 

Thank you.

Dual Super User
Dual Super User

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

Hey @Katrinnila29_ 

 

Navigate(App.ActiveScreen) refers to the current screen that user is on. This is passed as the default value in the switch case. Can you share more details about the error message that you are getting, so that we might be able to help you better?

 

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!

Katrinnila29_
Level: Powered On

Re: Can I navigate to a screen by selecting an item from a dropdown menu?

I forgot what the error message was, but I try another way to navigate my screen.

still using dropdown,and I use "Navigate" instead of "Switch" and it works well.

 

Thank you for the information.

 

Have a great day! 😄

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,238)