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 Platform Community / Forums / Power Apps / BrowseGallery Template...
Power Apps
Answered

BrowseGallery TemplateFill changing depends on this item

(0) ShareShare
ReportReport
Posted on by 53

Hello everyone,

I'm using a sharepoint list on powerapp. I'd like to change the color of a single item - TemplateFill - depending on the name of that item.
superblueee_0-1613639857637.png

These are two items of my gallery. I'd like that if the item is "adattamento", than the color is red; but if the item is "apprendimento continuo" the the color is blue.
I've tried this formula:

If(ThisItem.Title = "Adattamento"; RGBA(code for blue)) & If(ThisItem.Title = "apprendimento continuo"; RGBA(code for red))

but it doesn't work.
the item is called ThisItem.Title

Thanks to everyone

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,750 Most Valuable Professional on at

    HI @superblueee ,

    The selected item is only the one currently selected - you need

    Switch(
     ThisItem.Title;
     "Adattamento"; 
     RGBA(code for blue);
     "apprendimento continuo"; 
     RGBA(code for red)
    )
    

     

    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.

  • eka24 Profile Picture
    20,925 on at

    On the TemplateFill property:

    If(ThisItem.Title="Adattamento",Red,ThisItem.Title="apprendimento continuo",Green)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard