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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,125)