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 / Filtering DisplayForm ...
Power Apps
Answered

Filtering DisplayForm and EditForm based on a DataCardValue

(0) ShareShare
ReportReport
Posted on by 96

I have a gallery with DisplayForm and EditForm.

Is it possible to filter them based on a DataCardValue?

 

Here is a screen, I would like to get rid of "N/A" fields.

Screenshot 2022-01-25 144659.png

Categories:
I have the same question (0)
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @Mariollo 

     

    Is your screenshot from a form? and you just want to hide the data cards/fields that are N/A?

     

    If so, you change the 'visible' property in each datacard to the following - you will need to fill in the correct nr in place of ?? for each one:

     

    DatacardValue??.Text <> "N/A" 

     

    or for choice fields

     

    DatacardValue??.Selected.Value <> "N/A" 

     

    Hope this helps

     

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Mariollo 

     

    • Go to Displayform on the left navigation
    • Select each data card and set the visible property to
    TitleDataCardValue.Text <> "N/A"

     

    Example

    StalinPonnusamy_0-1643119630690.png


    Thanks,
    Stalin - Learn To Illuminate

  • Mariollo Profile Picture
    96 on at

    Thank you, both solutions (basically the same) worked for me.

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    That's great - glad you're sorted

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard