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 Platform Community / Forums / Power Apps / How to make a selected...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 66

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:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @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.

  • TheBest355 Profile Picture
    66 on at

    Thank you CNT you are a legend it works!

    Have a great day! 🙂

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard