cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Disable button if icon is not visible

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.

1 ACCEPTED SOLUTION

Accepted Solutions
zmansuri
Super User
Super User

a69.jpg

 

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

View solution in original post

3 REPLIES 3
zmansuri
Super User
Super User

a69.jpg

 

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

Anonymous
Not applicable

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?

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,646)