cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Szabolcs
Level: Powered On

Gallery background color

Hi,

I have a gallery with several records. Each record has an Active/InActive flag. I would like to fill the background color based on this flag. How can I do it? How can I reference to the actual record's attribute within the Fill attribute of the Gallery object?

 

Now I have a workaround with a rectangle object on the background, where I can use the following formula:

If(Text(Status) = "InActive", RGBA(180, 180, 180, 50%), RGBA(0, 0, 0, 0))

It works well but it is not so frendly solution.

 

Regards,

Szabolcs

1 ACCEPTED SOLUTION

Accepted Solutions
Steelman70
Level 10

Re: Gallery background color

Hi, it is much better to use the TemplateFill property of the gallery in conjunction with ThisItem.

In your case, something like If(ThisItem.StatusFlag, Blue, Red)

 

CaptureTF.JPG

 

 

 

View solution in original post

2 REPLIES 2
Steelman70
Level 10

Re: Gallery background color

Hi, it is much better to use the TemplateFill property of the gallery in conjunction with ThisItem.

In your case, something like If(ThisItem.StatusFlag, Blue, Red)

 

CaptureTF.JPG

 

 

 

View solution in original post

Szabolcs
Level: Powered On

Re: Gallery background color

Hi Steelman70,

 

Thanks! I was searching for this!

 

Regards,

Szabolcs

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 88 members 5,055 guests
Recent signins:
Please welcome our newest community members: