Announcements
I have a simple gallery that displays a priority as for each request as a 1,2 or 3. I was assuming I could use this value to change the color of an icon for each row in the gallery so the priority 3's could be red. I have coded the color property for the icon based off of the datasource.field value and also off of the control value listed on each tile, both seem to be ignored. Is this not possible. Many thanks.
Hi @nhale
In the Color of the icon, put this
If( ThisItem.Priority=3, Red, YourOtherColour )
You did not mention what the standard colour was.
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.
Thanks, that is exactly what I have but it does not work, so I thought maybe this was not possible in a gallery. I tried to change the property of another control using a different data point it that worked, so something about changing the borderfill on the icon or something about my field it does not like. I'll figure it out, just needed to know it was possible. Thanks again.
@nhale ,
I can assure you it works and I do it on a very regular basis. I can only answer your post with the information you provide and if you have a Numeric Priority number of 3 in the same item in the Gallery, the colour will certainly change to Red.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 411 Super User 2026 Season 2
Mohsin Ali 338
WarrenBelz 256 Most Valuable Professional