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 / IsBlank not working wh...
Power Apps
Unanswered

IsBlank not working when controlling visibility of datacard key

(0) ShareShare
ReportReport
Posted on by 82

I have a data card with 3 keys:

 

DatacardKey_1: Only visible is AccountType_DataCardValue.Selected.Value is blank (default)

DatacardKey_2: Only visible is AccountType_DataCardValue.Selected.Value is Leadership

DatacardKey_3: Only visible is AccountType_DataCardValue.Selected.Value is User

 

With 

If(
IsBlank(AccountType_DataCardValue.Selected.Value),false,true,
AccountType_DataCardValue.Selected.Value="Leadership",true,false,
AccountType_DataCardValue.Selected.Value="User",true,false
)

 

No datacard value is shown at all if the data AccountType_DataCardValue.Selected.Value is blank

If AccountType_DataCardValue.Selected.Value is User DatacardKey_3 is the only one displayed (correct and expected behavior)

If AccountType_DataCardValue.Selected.Value is Leadership DatacardKey_1 AND DatacardKey_2 are both shown. 

 

I have tried many variations of the code and none of them work. Is this a bug? 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @tpcolson - Not clear why you needed that formula instead of simply applying a specific formula to the Visible property of each "DataCardKey".

     

    For example, on the Visible property DatacardKey_1, use:

     

    Len(AccountType_DataCardValue.Selected.Value) = 0 

     

    On the Visible property of DatacardKey_2:

     

    AccountType_DataCardValue.Selected.Value = "Leadership" 

     

    On the Visible property of DatacardKey_3:

     

    AccountType_DataCardValue.Selected.Value = "User"

     

  • tpcolson Profile Picture
    82 on at

    When setting the visibility property of DatacardKey_1 to 

     

    Len(AccountType_DataCardValue.Selected.Value) = 0 

     

    The same exact behavior occurs

     

    On the Visible property of DatacardKey_2:

     

    AccountType_DataCardValue.Selected.Value = "Leadership" 

    and 

    On the Visible property of DatacardKey_3:

     

    AccountType_DataCardValue.Selected.Value = "User"

    Have already been set to those values and still are set to those values. 

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @tpcolson - see the example below. Is this not what you're trying to do? (display different Labels depending on a Dropdown/ComboBox selection).

     

    Recording2024-06-19203310.gif

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard