cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dmc_103
Helper III
Helper III

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

View solution in original post

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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,688)