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

Gallery of row

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a gallery of rows, in each row I have a text and a button. When I click on the button, I want to fill the text in another color  and to stay like that even if I click in a button in another row. Is it possible ? 

Thanks for your help

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    One option - 

     

    On your button, enter the following formula:

       Collect(colSelected, ThisItem)

     

    Then on the Text Fill property, set the Formula to this:

       If(ThisItem in colSelected, Green, White)

     

    This will set the text fill to Green if the button has been pressed and White if not.  Substitute your own colors.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Wow, it works.

    Thanks.

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 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard