Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
Posted on 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 at
    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 2025 Season 1 on at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard