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

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 III
Super User III

@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

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 III
Super User III

@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

View solution in original post

Thomaw
Helper I
Helper I

Salvation

It's good, thank you

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (76,678)