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

Fill the button based on BrowseGallery selected

Hello,

I'm having a problem getting the logic corrected. Basically, what I'm trying to do is fill the button in gallery 1 based on the BrowseGallery.selected. The fill color always defaulted to the first one

 

This is how I set it up. 

I inserted the global variable in the Pencil icon > OnSelect

 
 

2021-08-26_21-17-35.png

 

In the Edit screen, this is how I set it up. I want the green filled the correct button in the gallery1 based on the BrowseGallery selected.

 

2021-08-26_21-14-23.png

 

Any pointer will be great.

 

Thanks

2 REPLIES 2
Drrickryp
Super User
Super User

@Stuznet 

Fill property for each button

If(Dropdown1.Selected.Value = "Ball", Green, Grey)

If(Dropdown1.Selected.Value = "Car", Green, Grey)

If(Dropdown1.Selected.Value = "House", Green, Grey)

 

Drrickryp
Super User
Super User

@Stuznet 

Fill property for each button

If(Dropdown1.Selected.Value = "Ball", Green, Grey)

If(Dropdown1.Selected.Value = "Car", Green, Grey)

If(Dropdown1.Selected.Value = "House", Green, Grey)

 

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, 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!

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