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 / Changing a gallery col...
Power Apps
Unanswered

Changing a gallery color based on time

(1) ShareShare
ReportReport
Posted on by 4

Is there a solution that will change the color of a gallery input based on time? I have seen the use of icons that change colors but its based on a specific button or selection. I was wondering if there is a formula that would change the color based on an input time + entered time. Example: the default fill is blue. Input time is 12:00PM. Cook time is: 6hrs. At 5:45pm turn Yellow. 6PM turn Green. 6:15PM turn RED. 

Pricef1_0-1682640050495.png

For instance in the gallery below it shows an IN time of 18:00. Cycle time of 7.5hrs. So in 15min prior to end time turn yellow, green on end time, and red 15min after end time. 

 

Categories:
I have the same question (0)
  • turnerj3 Profile Picture
    2,039 on at

     In the TemplateFill property of the Gallery:

    If(InputTime=TimeValue(“12:00 PM);Green;Blue)

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard