cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sharpmachine555
Frequent Visitor

Concatenate strings with different colors

Hello, 

 

I have a very simple question, how to concatenate strings values and have them displayed in different colors in a label. 

Example:

Concatenate("Test1","Test2")

 

How do I get Test1 to display Red and Test 2 to display Blue both in the same label?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@sharpmachine555 

You cannot do this in a Label.  A label only is one color.

 

You could use an HTML text control however.  In which case your HtmlText property would be this:

"<font color=red>Test1</font><font color=blue>Test2</font>"

This will give you what you are looking for.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@sharpmachine555 

You cannot do this in a Label.  A label only is one color.

 

You could use an HTML text control however.  In which case your HtmlText property would be this:

"<font color=red>Test1</font><font color=blue>Test2</font>"

This will give you what you are looking for.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thanks!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,998)