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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

IsSelected

(0) ShareShare
ReportReport
Posted on by 272

I have a gallery that contains statuses.  When a status is selected, it filters another gallery below it.    

 

theisogunro_0-1646327262088.png

When you hover over any of the statuses, the color changes to a gold color but when I click it and move away, it changes back to white.  

theisogunro_1-1646327391441.png

I would like for the color to stay gold when it is clicked/selected.  How can I do this?  I tried doing the following on the color property but it didn't recognize IsSelected

ThisItem.Status.IsSelected

 

How can I achieve my objective?

 

Thanks!

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Why don't you set a var when you select the Status?

    So, Imagine, wen you press "All", you set the var to 1, "NotStarted" , you set the var to 2 and so on.

     

    After that, on "All" Color you write this:

     

    If(ColorVar = 1, ColorSelected, NonSelectedColor)

     

    And do that for each one of your status

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • theisogunro Profile Picture
    272 on at

    It's a gallery.  What I do to one, needs to work for all.

  • Verified answer
    Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    When you select an item from the gallery write this:

     

    Set(varFillStatus, LabelStaus.Text)

     

    That will set the variable to the label that you got in the gallery.

     

    After that write this on the Fill property of the item:

     

    If(varFillStatus = LabelStaus.Text, ColorSelected, NonSelectedColor)

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,

    Gonçalo Nogueira

    Check my LinkedIn!

    Buy me a coffee!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Is that all you put in for Color on that label is ThisItem.Status.isSelected? You would want something like this if you want same as hover color. 

     

    If(ThisItem.Status.isSelected, Self.HoverColor, Black) 

     

    You can use whatever color to substitute for Black, or replace Self.HoverColor with a custom color for what you want it to be. 

     

     

  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Sorry, you want If(ThisItem.isSelected, truecolor, falsecolor)  replace true color with Self.HoverColor or a custom color and same for falsecolor. That should get you what you need. 

  • daniel_costanza Profile Picture
    10 on at

    How can I achieve this in the component

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard