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 / What is the difference...
Power Apps
Answered

What is the difference between "" and IsBlank()

(0) ShareShare
ReportReport
Posted on by 13

Hi PowerApps community,

 

I was trying to set a value for If(DataCardValue.Text = "", true, false) where if the input text field is empty, it is a required field but it doesn't seem to work. I've tried IsBlank(DataCardValue) and the condition was executed perfectly. 

 

Can anyone share what is the difference in using DataCardValue.Text = "" vs IsBlank(DataCardValue)?

 

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @sam10,

     

    Their functionality have some overlap but IsBlank() is more versatile and has my preference.

     

    DataCardValue.Text = "" looks for an empty string and only an empty string (text field). If the Default of the datacardValue / label / TextInput is "" then this will do the trick. It will not handle null or blank values (e.g. empty fields).

     

    IsBlank() will look for both blank (null) and empty text values. You can check what value a DatacardValue returns by highlighting 'DataCardValue.Text' in your formula bar:

    LaurensM_0-1678035657894.png

     

    If this solves your question, would you be so kind as to accept it as a solution.

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard