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 / Gallery TemplateFill u...
Power Apps
Unanswered

Gallery TemplateFill using Checkbox

(0) ShareShare
ReportReport
Posted on by 183

I have a collection where the items displayed are dependent on a few filtering options.

I've used the following formula on the TemplateFill and it seemed to be working.
If(Checkbox2.Value,RGBA(232,244,217,1),RGBA(0, 0, 0, 0))

However, I noticed that if my first record in the gallery was checked and I scrolled down my gallery past the first 40 or so records and noticed that unchecked records were still acting as if they were checked. Thus, changing the color of the row.


They aren't a part of the collection that is added whenever a record is checked.

I tried using the Gallery Fill with the following:
If(ThisItem.Checkbox2.Value,RGBA(232,244,217,1),RGBA(0, 0, 0, 0))
But this threw an error in the code and turned the gallery black.

What am I missing?

TemplateFill
First record in gallery checked.

NathanFra_2-1677119464795.png

 


Unchecked records

NathanFra_1-1677119318110.png



Fill

NathanFra_3-1677119979206.png

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Did you happen to figure this out?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard