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
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
Top Kudoed Authors
Users online (2,772)