Hey everyone,
I'm trying to build an app which has a section of choice dropdowns with yes/no responses that are from a sharepoint list. If no is selected on any of these drop downs, the app will redirect to a fail screen (Screen4), otherwise it goes to a pass screen (Screen3).
I've written down the following OnSuccess property for the form below but everytime I test the app, PowerApps doesn't seem to register that I've inputted No dropdowns and sends the app to the success screen when it should have failed.
Is there anything that I have written down wrong here or is there another way for PowerApps to read the response of the datacardvalue instead of a string?
If(
Or(
DataCardValue1.Selected.Value = "No",
DataCardValue2.Selected.Value = "No"
),
Navigate(
Screen4,
ScreenTransition.UnCover
),
Navigate(
Screen3,
ScreenTransition.UnCover
)
)
Hi @SwissPeaks_55 ,
I just realised this code was used in the OnSucces:
it looks like the Form is submitted, reset and then this code is tested, so it always gives true (the two values are Blank(), hence not "No").
Marc
Hey there, the success screen was Screen3. The intention was that if any of the dropdowns were selected as no, the screen would go to the fail screen (i.e. the IF Statement produces a true result of the or statements stating no), however, it keeps going to the Success Screen (Screen3) meaning the if statement produced a false result.
Hi @SwissPeaks_55 ,
I recreated your situation with two dropdowns on a form, code works fine.
Which one is the SuccesScreen (Screen3 or Screen4)?
Marc
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 2