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 Automate / Color changing based o...
Power Automate
Answered

Color changing based on content

(0) ShareShare
ReportReport
Posted on by 338

I have a simple power app for user registration. Behind it I have a simple power automate to send HTML formatted messages:

PA Covid.PNG

What Im trying to achieve is change the color of the input of 'Employee Last Site Visit' to be based on the 'Date' column.

For example if 'Employee Last Site Visit' is 3 days smaller than 'Date' column, than Input to be in red color.
Is this even possible? Thank you in advance.

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @SectorOMEGA 

     

    Check https://www.youtube.com/watch?v=VnWg-Eox37Q

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • SectorOMEGA Profile Picture
    338 on at

    Hi @RezaDorrani  THANK YOU so much for this one. Really useful and nice video. However when I recreate it with the expressions form it I receive this:

    2021-10-05

    2021-08-01

    <font color = "green">Closed</font>

    2021-10-05

    2021-07-01

    <font color = "red">Open</font>

    For the color expression Im using this code:

    if(equals(item()?['CaseStatus/Value'],'Open'),'red',if(equals(item()?['CaseStatus/Value'],'Closed'),'green','black'))

    As per the above return the code works because it changes the status but Im not getting color rather getting the code back with the true/false statement. What Im missing?

  • SectorOMEGA Profile Picture
    338 on at

    @RezaDorrani Fixed. I was missing ' in the clean HTML step. I have added it and all is working good. Thank you so much Reza

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 124 Super User 2026 Season 1

#2
Ellis Karim Profile Picture

Ellis Karim 52 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 50

Last 30 days Overall leaderboard