0

I am using a Power Apps If statement.

I have four questions that must be answered "YES" in order to proceed to the next screen.

If any of them is answered "NO", then navigates to a different screen.

Using following syntax:

If(Dropdown2.Selected.Value="YES" ,
Dropdown2_1.Selected.Value= "YES",    
Dropdown2_2.Selected.Value= "YES", 
Dropdown2_2.Selected.Value= "YES", 
Navigate(Screen1, ScreenTransition.Fade), Navigate(Screen1_2))

Where am I going wrong?

1 Answer 1

1

Try using this:

If(And(Dropdown2.Selected.Value = "YES", Dropdown2_1.Selected.Value = "YES", Dropdown2_2.Selected.Value = "YES", Dropdown2_3.Selected.Value = "YES"), Navigate(YesScreen, ScreenTransition.Fade), Navigate(NoScreen, ScreenTransition.Fade))

OR

If(Or(Dropdown2.Selected.Value = "NO", Dropdown2_1.Selected.Value = "NO", Dropdown2_2.Selected.Value = "NO", Dropdown2_3.Selected.Value = "NO"), Navigate(NoScreen, ScreenTransition.Fade), Navigate(YesScreen, ScreenTransition.Fade))

Change the name of controls, NoScreen & YesScreen with actual name of controls & screens in your app.

Microsoft documentations:

  1. And, Or, and Not functions in Power Apps
  2. If and Switch functions in Power Apps
1
  • 1
    Ganesh, statement worked. As always! Thanks a million for your support!
    – Jose1978
    Jan 30, 2021 at 18:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.