cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Partisan
Post Partisan

Change Font Color in Html Field

I have an HtmlText field in which either "Compliant", "Certified" or "Noncompliant" can appear. I have the following in the HtmlText property of the field. The below ONLY returns "Compliant" in blue font. I need to edit the below so that either "Compliant" or "Certified" appears in blue font, and ONLY "Noncompliant" appears in red font. 

 

"<sb>Compliance Status: </b>"&If(ThisItem.ComplianceStatus="Compliant","<font color=blue>","<font color=Red>") & ThisItem.ComplianceStatus

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

@3csman 

I think the key thing to do here is to test for "noncompliant" like so..

"<b>Compliance Status: </b>"& If(ThisItem.ComplianceStatus="Noncompliant","<font color=red>","<font color=blue>") & ThisItem.ComplianceStatus

 

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

@3csman 

I think the key thing to do here is to test for "noncompliant" like so..

"<b>Compliance Status: </b>"& If(ThisItem.ComplianceStatus="Noncompliant","<font color=red>","<font color=blue>") & ThisItem.ComplianceStatus

 

View solution in original post

Highlighted

Indeed!

 

Thank you!

Highlighted

How about a number field?

 

If the number is '0' or greater font is blue; if number is less than '0' font is red?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (12,893)