cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Partisan
Post Partisan

Navigate to different screens from dropdown selection

Hi,

I've tried a couple of things but cant get it to work. I have a drop down, with a few options to choose from.

On the dropdown itself on the OnSelect or OnChange Property, I have tried just with 1 of the dropdowns selections first:

 

If("Part B" in RequestForDropdown.Selected.Value, Navigate(PartBScreen,Fade))

 

doesn't work, so I created a next button and on its OnSelect I set the same formula, again nothing happens.

 

Also tried:

If(RequestForDropdown.Selected.Value = "Part B", Navigate(PartBScreen, Fade))

 

Neither work when I hit the play button

 

Ideally what I want is for the users not to press a next button, rather as soon as a user selects from the dropdown, I want the user to be navigated to another screen, is this possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: Navigate to different screens from dropdown selection

Hi @G99 , Your code syntax is correct - the second one is better as In is not a delegable filter.

If(
   RequestForDropdown.Selected.Value = "Part B", 
   Navigate(PartBScreen, Fade)
)

Put a label on the screen and set the Text Property to

RequestForDropdown.Selected.Value

And see if it shows "Part B" when this is selected in the DropDown.

In relation to your second question, you just put the code in the OnChange property of the DropDown.

 

View solution in original post

5 REPLIES 5
Highlighted
Community Champion
Community Champion

Re: Navigate to different screens from dropdown selection

Hi @G99 , Your code syntax is correct - the second one is better as In is not a delegable filter.

If(
   RequestForDropdown.Selected.Value = "Part B", 
   Navigate(PartBScreen, Fade)
)

Put a label on the screen and set the Text Property to

RequestForDropdown.Selected.Value

And see if it shows "Part B" when this is selected in the DropDown.

In relation to your second question, you just put the code in the OnChange property of the DropDown.

 

View solution in original post

Highlighted
Post Partisan
Post Partisan

Re: Navigate to different screens from dropdown selection

HI @WarrenBelz 

 

Yes that's what I've tried and simply doesn't do anything, tried it both on the OnChange and OnSelect, cant see what i'm missing, if anything, or is it just PowerApps having a moment!

I've put a label on the screen, and can see the label is displaying what is selected.

 

Just the navigation part is not working

Highlighted
Community Champion
Community Champion

Re: Navigate to different screens from dropdown selection

Hi @G99 ,

I am clutching at straws here - the code is perfectly fine.

Just put

Navigate(PartBScreen, Fade)

and make sure that works.

Highlighted
Post Partisan
Post Partisan

Re: Navigate to different screens from dropdown selection

HI @WarrenBelz 

 

Now it just started working, all I did was save and publish... and without close the designer went back to it after 5 mins and hey presto, soon as I select the drop down it navigated to the correct screen,

 

Thanks for your responses

Highlighted
Community Champion
Community Champion

Re: Navigate to different screens from dropdown selection

As it should 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (5,789)