cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sporran
New Member

toggle a buttons visibility on parent select

I need to toggle the Visible property of a button, so that the button only shows up for the item(the row i guess) in the gallery that has been selected. 

 

I tried to put a function in the Visible property of the button as follows: 

 

If(Parent.Selected = true, true, false)

but this did not work as i had hoped, how can I achieve this. 

I know i could probably put a button not within the gallery and grab the selected item, but i would prefer to have the button inside the gallery. 

 

Thanks for any help!

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosFigueira
Power Apps
Power Apps

You can access the IsSelected property from the ThisItem object in a row to check whether it's selected. If you set the Visible property of your button to

ThisItem.IsSelected

Which is equivalent to

If(ThisItem.IsSelected, true, false)

Then you should see the button only on the selected row.

Hope this helps!

View solution in original post

2 REPLIES 2
CarlosFigueira
Power Apps
Power Apps

You can access the IsSelected property from the ThisItem object in a row to check whether it's selected. If you set the Visible property of your button to

ThisItem.IsSelected

Which is equivalent to

If(ThisItem.IsSelected, true, false)

Then you should see the button only on the selected row.

Hope this helps!

View solution in original post

This did it, 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,606)