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 / Clear Image Button Dis...
Power Apps
Suggested Answer

Clear Image Button DisplayMode Status

(1) ShareShare
ReportReport
Posted on by 5,331 Moderator
I have Gallery in which I have placed an Image control along with a button to clear the image.

I cannot get the button display mode to properly respond to the condition of the image control.

If there IS an image in the Image control the button should be Edit.

If there IS NOT an image in the Image control the button should be Disabled.

What am I missing?

I tried both of the following -
If(IsEmpty(AddMediaButton1_1.Image),DisplayMode.Disabled,DisplayMode.Edit)
 
If(IsEmpty(UploadedImage1_1.Image),DisplayMode.Disabled,DisplayMode.Edit)
Categories:
  • Suggested answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at
    IsEmpty is for a Table. What you want for this is IsBlank().
     
    If(IsBlank(UploadedImage1_1.Image), DisplayMode.Disabled,DisplayMode.Edit)
     

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
     
     
  • Phineas Profile Picture
    5,331 Moderator on at
    With your suggestion, the error is gone but the performance is not correct.

    There is no image (that I provided) but the button is in 'Edit' and should be in 'Disabled'.

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard