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 / Change the border colo...
Power Apps
Unanswered

Change the border colour of a selected button in a gallery

(0) ShareShare
ReportReport
Posted on by 33

Hi,

 

I am trying to change the border colour of the selected button for each item individually of a gallery. Ive attached a picture. basically, if Low stock for dogs is selected it should be highlighted yellow, and then if in stock for wedges is selected it should be highlighted, without changing the highlights of the other buttons etc.

 

Any help would be appreciated

 

eobrie22_0-1654267014539.png

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @eobrie22 ,

    On the OnSelect of the button

    Collect(
     colSel,
     {Value: Self.Text}
    )

    On the BorderColor - xxxx is whatever colour it is now

    If(
     Self.Text in colSel.Value,
     Yellow,
     xxxx
    )

     and at screen OnVisible

    Clear(colSel)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @eobrie22 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard