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 / Disable button if icon...
Power Apps
Answered

Disable button if icon is not visible

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I would like to disable a button if an icon is not visible.

I tried: If(PROMT_ICON.Visible=false, DisplayMode.Disabled, DisplayMode.Edit) 

There are no squiggly lines. However, it doesn't seem to work.

 

Appreciate your help.

Categories:
  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a69.jpg

     

    try this. As you can see icon is not visible and button is disabled. There is no DisplayMode.Disbaled. Just Disable

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @zmansuri , it works!

    Can you tell me though why use TRUE, when you meant to execute the boolean when the icon is not visible?

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    You can use either true or false. Write the values accordingly. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard