Skip to main content
Community site session details

Community site session details

Session Id : bRUGGWWiR75M1OQMYlQp01
Power Apps - Building Power Apps
Answered

How to make a selected item(text) in a gallery go bold or change colour to show it has been selected

Like (0) ShareShare
ReportReport
Posted on 10 May 2023 11:53:10 by 59

TheBest355_0-1683719066443.png

 

On the left hand side, is a Gallery(Gallery1), I want that when I select any of those three items they get highlighted into bold or change colour or something to indicate it has been selected. It does get selected because on the right it shows the value when it clicked on.

 

I have tried the following formulas:

 

Gallery1 -> OnSelected -> If(ThisItem.IsSelected, Colour.DarkRed)

Gallery1 -> OnSelected -> If(ThisItem.IsSelected, Font.'Open Sans')

Gallery1 -> OnSelected -> If(ThisItem.IsSelected, Font = DropShadow.Bold)

 

None of the above work, every time I click on for example "Combination CBC Block" it get shown in the right hand side under product selected but I have no way showing it has been selected on the left hand side because the item selected is not going bold, or changing to a different colour.

 

Please help! 🙂

 

Thanks

 

Omar

 

Categories:
  • TheBest355 Profile Picture
    59 on 10 May 2023 at 13:26:40
    Re: How to make a selected item(text) in a gallery go bold or change colour to show it has been selected

    Thank you CNT you are a legend it works!

    Have a great day! 🙂

  • Verified answer
    CNT Profile Picture
    10,919 Super User 2024 Season 1 on 10 May 2023 at 12:37:51
    Re: How to make a selected item(text) in a gallery go bold or change colour to show it has been selected

    @TheBest355 Please try the following,

    Set the TemplateFill property of the Gallery to,

    If(
     ThisItem.IsSelected,
     RGBA(color that you want selected),
     RGBA(regular color)
    )

     Please remember to give a 👍 and accept my solution as it will help others in the future.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473