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
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

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.

<
Users online (3,148)