cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thomaw
Helper II
Helper II

Button visibility

Hello,
How to make a button invisible on condition? For example, make the delete button invisible if the value of such column is empty (<> "")
thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Thomaw 

You mention "such column" - are you placing this button in a Gallery or is it somehow related to a record and a column?

 

In general, you will change the Visible property based on checking for Blank.

Change the Visible property formula to the following:

   IsBlank(yourColumnLookupOrControlProperty)

 

There is no need to redundantly specify If(..., true, false) as the above already returns a true or false.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
Alex_Security
Resolver I
Resolver I

Hi @Thomaw ,

 

you can use the Visible function on the button with a boolean variable to achieve this, so something like the below should work:

 

If(IsBlank(List.Column)=true,false,true)

 

in this example if the column is blank the button is not visible if its not blank then it shows.

 

hopefully this answers your question, if it does feel free to mark it as a solution!

RandyHayes
Super User
Super User

@Thomaw 

You mention "such column" - are you placing this button in a Gallery or is it somehow related to a record and a column?

 

In general, you will change the Visible property based on checking for Blank.

Change the Visible property formula to the following:

   IsBlank(yourColumnLookupOrControlProperty)

 

There is no need to redundantly specify If(..., true, false) as the above already returns a true or false.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Thomaw
Helper II
Helper II

Salvation

It's good, thank you

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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