web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / "If" statement not beh...
Power Apps
Answered

"If" statement not behaving as it should be.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Given a form with a set of DataCardValues, I have a button with text that changes depending on the following condition

 

If(
!IsBlank(DateValue9) && !IsBlank(DataCardValue7) && !IsBlank(DataCardValue15) && !IsBlank(DataCardValue5) && !IsBlank(DataCardValue8) && !IsBlank(DataCardValue6) && !IsBlank(DateValue8) && !IsBlank(DataCardValue9.Selected) && !IsBlank(DataCardValue10.Selected),
"Nouvelle Action /
Start a New Action",
"Champ manquants à remplir /
Missing fields"
)

 

For some reason (which I can't figure out), the system doesn't process !IsBlank(DataCardValue9Selected) && !IsBlank(DataCardValue10.Selected). That is, even if DataCardValue9 and DataCardValue10 are Blank, the output text is "Nouvelle Action /
Start a New Action". It should be "Champ manquants à remplir /
Missing fields"

 

Any helpful comments or suggestions will get Kudos, until solution is found!

 

Thanks a bunch

Categories:
I have the same question (0)
  • Verified answer
    AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @Anonymous, you have to use the DataCardValue10.Selected.Value 

     

    >> !IsBlank(DataCardValue9Selected.Value) && !IsBlank(DataCardValue10.Selected.Value)

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    this did it for me! thanks 

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard