web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

(0) ShareShare
ReportReport
Posted on by

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard