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 / Visible only if attach...
Power Apps
Answered

Visible only if attachment exists

(0) ShareShare
ReportReport
Posted on by 204

Hey all, 

I am using a SP list as a data source here. This expression has no error but doesn't seem to be working.

 

Basically people will create a new item and can attach only 1 image if they want, but if they attach no image, then I want the visibility to be false so the border disappears. Pretty simple, but yet this isn't working. This is a GALLERY, by the way.

attachmentPOST.png

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at
    If(IsBlank(Image1.Image),DisplayMode.Disabled, DisplayMode.Edit)

    Or
    If(IsBlank(ThisItem .Image),DisplayMode.Disabled, DisplayMode.Edit)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @TorreyFalconer 

    I believe there is a HasAttachments property in SharePoint which makes this even simpler 🙂

     

    I am not sure exactly what border you are referring to but if you placed this code in the Visible property it might work.  Don't include any IF statement, it works on its own.

    ThisItem.'Has Attachments'

     

    Or even filtering the gallery to remove those rows might work.

    Filter(your_datasouce_name, 'Has Attachments'=true)

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • TorreyFalconer Profile Picture
    204 on at

    Thanks!!

  • TorreyFalconer Profile Picture
    204 on at

    BEAUTY. Thanks, the "Has Attachments" method was the simplest but all methods suggested work!

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

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard