cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PVLove
Helper III
Helper III

Change Text Color in Label

Hello All,

I added a Label to a Gallery with the following in the Text property:

 

"Read the PDF Help topic, " & ThisItem.Title & "," & "or watch the Video to understand the basics of this feature."

 

I want the text of the ThisItem.Title part of the string to be red. Is this possible? I've tried to change the Label's 'Color' property, the 'Visible' property and nothing works. Any assistance is deeply appreciated.

 

PLove

 

paTextColor1.pngpaTextColor2.png

1 ACCEPTED SOLUTION

Accepted Solutions
BCBuizer
Super User
Super User

HI @PVLove,

 

It is not possible to have different text markups in the same label control. However, you can make this work with an Html text control, butt you'll have to add tags for the color:

 

....topic, <b><font color=red>" & ThisItem.Title & "</font></b> or watch.....


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

4 REPLIES 4
BCBuizer
Super User
Super User

HI @PVLove,

 

It is not possible to have different text markups in the same label control. However, you can make this work with an Html text control, butt you'll have to add tags for the color:

 

....topic, <b><font color=red>" & ThisItem.Title & "</font></b> or watch.....


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
Sunil-Narnaware
Super User
Super User

@PVLove : The only option is to have 3 labels, stitched side by side.. the first label says 'Read the PDF...", color property black.. second label  ThisItem.Title, color property red.. and third label.. remaining text and color property black..

Morning @BCBuizer ,

Thank you so much!  I was close, but had the <font> tag in the wrong place.

Patti

Morning @Sunil-Narnaware ,

Thank you for responding.  I tried that approach, but it used to much space; I needed something that I could control the width of the label.

Patti

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,945)