web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering one gallery ...
Power Apps
Unanswered

Filtering one gallery based on a selection from another gallery and color coding the selection

(0) ShareShare
ReportReport
Posted on by 97

Hi Experts,

 

I have a gallery with all the information.

I wanted to show data based on filters like All, Completed, In Progress and Submitted.

 

For that I created a horizontal gallery and linked this gallery to a list called as Filters with the above values.

Now I added a button in the gallery and Set a value for a variable On button Select:

Set(RequestTypeFilter, ThisItem.Title)

 

After this the gallery of filter looks like this:

Aditya1728_0-1619622303215.png

Now I have linked this filter with another gallery, so whenever I click on a particular button, the results in the other gallery are filtered. That is not the problem.

 

I want to change the color of the button on the image once it is selected, so that the user know what filter is selected.

Right now the color does not change, so even if the result is correct, the user never knows what is the filter for which the value is shown.

 

Any suggestions?

 

Thanks,

Aditya

Categories:
I have the same question (0)
  • Verified answer
    C-Papa Profile Picture
    1,836 on at

    Hi, you could add this to the fill property of all buttons, change the colours to your preference

     

    If(Button2.Text = RequestTypeFilter,Green,Red)

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Aditya1728 

    Something like this:  in the screenshot the button fill property: If(ThisItem.IsSelected,Yellow,RGBA(56, 96, 178, 1))) and for the Color property
    If(ThisItem.IsSelected,Black,RGBA(255, 255, 255, 1)).  You can also modify the Hover properties in the same way._1.png

  • Aditya1728 Profile Picture
    97 on at

    Hi @C-Papa , @Drrickryp ,
    Both of your solutions worked.

    Thank you so much.

     

    Regards,

    Aditya

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard