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

Hide a button in gallery unless yes/no toggle is set to true/1

Hi All,

 

I thought this was something easy to do but I'm obviously missing something here.

 

I have a view gallery that displays Corrective Actions. It has an Amend button and a Progress Button. There is a label that displays True/False based on if the Correcive Action has been initially approved or not. What I'm after is for the Progress CA button to only be visable if the Initial_Approval_Complete is set to yes (True or 1).

 

Initial_Approval_Complete = Toggle button (Yes/No, True/False, 1/0)

 

So I thought it would be something as simple as this on the Visible property of the Progress CA button.

 

If(Initial_Approval_Complete = 1)

 

 I've also tried, True here.

 

Its obviously not as simple as I thought.... As I'm finding alot of the time in PA.

 

Any help would be much appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Hi @Doddy83 ,

You should not need the true/false or If - Visible can be simply

Initial_Approval_Complete.Value

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

On the Visible of the button put;

Initial_Approval_Complete.Value=true

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Super User III
Super User III

Hi @Doddy83 ,

You should not need the true/false or If - Visible can be simply

Initial_Approval_Complete.Value

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted

Many thanks, this sorted it. Althought I didnt need the .value at the end.

 

Was even more simple than I thought!

 

Thanks again!

Highlighted

Sorry for delay, I did also try this as it's very similer to what I was trying but couldn't get this to work either. It didnt seem to like the = being in the formula?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,110)