cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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
Anonymous
Not applicable

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 II
Dual Super User II

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
Anonymous
Not applicable

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 II
Dual Super User II

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

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

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

 

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

because it showed an error.

 

Thank you.

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!

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (28,239)