Skip to main content
Community site session details

Community site session details

Session Id : S1LxhiP62vngxjzefjL5cy
Power Apps - Building Power Apps
Unanswered

How to get PowerApps to read DataCardValues for IF/OR statements?

Like (0) ShareShare
ReportReport
Posted on 31 May 2022 00:42:40 by 2

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
 )
)

 

  • Waegemma Profile Picture
    583 Super User 2024 Season 1 on 01 Jun 2022 at 05:02:04
    Re: How to get PowerApps to read DataCardValues for IF/OR statements?

    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

  • SwissPeaks_55 Profile Picture
    2 on 01 Jun 2022 at 03:45:54
    Re: How to get PowerApps to read DataCardValues for IF/OR statements?

    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. 

  • Waegemma Profile Picture
    583 Super User 2024 Season 1 on 31 May 2022 at 07:22:35
    Re: How to get PowerApps to read DataCardValues for IF/OR statements?

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete