cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Gallery of row

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

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

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

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

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

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Anonymous
Not applicable

Wow, it works.

Thanks.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (80,593)