cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Hide Data Card when value is blank

I have a bunch of data cards bound to columns in a SharePoint list. Is there a way to hide an entire data card on a DisplayScreen if the value associated with the data card is blank? FYI, the data card value is set to Parent.Default, where Parent is the SharePoint list column bound to the data card.

1 ACCEPTED SOLUTION

Accepted Solutions
Ancherl
Advocate I
Advocate I

Hi,@JML

According to your statement, I design a demo to test it. In my opinion, you should make sure that which data card may be blank and set the Visible property as follows:

If(IsBlank(ThisItem.fieldName),false,true)

Above is my understanding, if my thought is not correspond to your question, please feel free to contact me and clarify your question in more details

View solution in original post

3 REPLIES 3
Ancherl
Advocate I
Advocate I

Hi,@JML

According to your statement, I design a demo to test it. In my opinion, you should make sure that which data card may be blank and set the Visible property as follows:

If(IsBlank(ThisItem.fieldName),false,true)

Above is my understanding, if my thought is not correspond to your question, please feel free to contact me and clarify your question in more details

Hi,

 

I have amended my powerapp as you suggested and strangely enough it worked on the first datacard that I added this function to, but from then it will not work on any other datacard.

 

Any clues why this should be, please

 

Peter

CCiancimino
Regular Visitor

I'm a little late to the conversation, but just ran into this issue with a view form where I wanted to hide empty fields. The new self function may be pointed to the data card default value. The below can be placed into the  (edit: visible property of the) parent, or applied to every field where you want to hide blank values.

 

Not(IsBlank(Self.Default))

The value returned is a bool, so no need for an if statement.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,441)