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

Choose a specific text in a gallery

Hi,

I have a gallery of texts and a button, each time i add an element to the gallery, i have a new text added to the gallery with a new button, the thing is I want to change the color of the text when i click on the specified button, but when i do, all the texts change color, so how can i link the button to its related text ?

Thank you, i hope i have been clear

20 REPLIES 20

I think in that case you will have to get creative. Keep the CheckBox hidden on the Gallery control i.e. Visible=False.

In the OnSelect of the button, toggle the value of CheckBox control. Rest of the functionality should be as I explained in my previous response i.e. set the Color property on based on CheckBox.value. That should work as per your requirement.

 

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,956)