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 / Hide cards when empty ...
Power Apps
Unanswered

Hide cards when empty content, is there a generic formula?

(0) ShareShare
ReportReport
Posted on by 81

Hi! I have a form with A LOT of cards. I would like to hide the empty cards, i.e. cards where their "Default" value is  = "".

I can put in the "Visible" property of the card the formula "If(ThisItem.FIELDNAME="",false,true)". 
But I would need to customize the formula for EACH card of my form...

I would like to use a generic formula, so that it would be enough for me to CTRL+select all cards "on the left", then click on "Visible" property on the right and then paste the same formula on all the cards. One shot, and all cards would be automatically hidden when the content is empty. 

But I cannot find a generic formula, unfortunately. The "Default" property of the card ("If(Default="", false,true)" ) does not work. Too bad! 

Any idea? 
THX!
Bye,
A.-

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Like excel you dont need the if statement, so you can just do !IsBlank(Default) or you could use !IsBlank(Thisitem.Fieldname)  so you dont need the ,true, false and () to make managing the app easier. 

  • MisterMagoo Profile Picture
    81 on at

    Thanks @Anonymous for you answer, but it is not a matter of "what function to use". The "Default" property seems not to be usable in the "Visible" property of a card.
    I can access the "Parent.Default" property if I use it from a control contained in a card. e.g. I can set the "Visible" property of an editbox contained in a card to "!IsBlank(Parent.Default)"). But card's "Default" property seems not to be usable from the card itself. 

     

    See below: you see? When I try to use your proposed function in the "view" property of a Card, it suggests me to use the "Defaults" function. If I keep on and select "Default" instead, it gives me  an error...

     

    2018-10-11_0943.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Sorry fo rhte late reply, have you tried using ThisItem and the field name, like ThisItem.Something.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Happy to jump on skype with you if you like, PM me if you want.

  • MisterMagoo Profile Picture
    81 on at

    Hi @KeithWhatlin: yes, as I wrote in the firts post, using ThisItem.<FieldName> works fine! But the issue is that each card has a different FieldName, of course. And I am looking for a formula that can be pasted with one single keystroke to ALL "View" properties of my different cards, with no changes. 

    I don't want to write a "If (IsBlank(Thisitem.<FieldName>),false,true)" changing the FieldName for each single card...

    (Thanks for offering, but I don't want to bother you in skype, also because we may be living in different timezones :-)) 

    Bye!
    A.-

  • alsabea Profile Picture
    54 on at

    i dont think it is not possible, i have seen a Suggestion in vote to add thisitem.me.

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 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard