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

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,143 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

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard