Announcements
Hello,
I need to use a label in which i am writing name of text and a special character.
So what i want is that text should be in black color and the special symbol to be in red color.
Can i do this???
As far as I know, it's not possible to have different colours within the same label.
Can you split the text in two labels and have the special character in a label of its own, thereby being able to colour it separately? If you right justify the label with the text and put the label with the special character very close by, it will look like one combined field.
Hello @BitLord69
I hav such labels in my project.so i needed to figure it out how to do so
Image Reference :
1.Half Part of label is Black and the cursor is also black
2.Half is red and cursor also turn red
Its like a normal label nothing special and no new properties.
But i couldnt do it and i can not use the label by copying as the red part becomes black when i edit the text in the copied label.
However when i copy the text in the label it shows a line in between the text and symbol.
But its a single label .
Thanks
You are right and I was wrong - it can be done! I learnt something new today, great.
You just have to select the part of the text in the label you want and then set the colour in the menu.Not sure how you would do this if you set the lable's text in code...
Select the text in the label, and in the Start menu, click on the text colourPresto! Two colours in a label
@BitLord69 yeah thanks it worked
I was able to create a different color of text within my label, but as soon as I applied it, all the words got messed up. Basically, as the words wrapped, they separated - so at the end of one line I have word started and then the next line is the rest of the word. I'm having to individually go through and re-space every line. Help!
This did not work for me. Selecting part of the text and then selecting a different colour simply changes the colour of all text in the label.
I was having issues with my label retaining my bold, italic, underlines, and line breaks. I switched over to an HTMLText Input type and it allowed me to use HTML to set more flexible boundaries around my text. You can use <font color=red>My red text</font> to color it.
A little late but for future reference, this can easily be done with the HTMLText control. Here's an example:
"<div style = 'font-weight: bold; text-align: center'> <span>Hello, </span> <span style='color: RGBA(56, 96, 178, 1);'>"& If(Connection.Connected, Office365Users.MyProfile().GivenName, First(colLoggedInUser).GivenName)&"</span> </div>"
This results in:
Of course you can do this for any number of colours dynamically.
Hope this is useful
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 432 Super User 2026 Season 2
Mohsin Ali 347
WarrenBelz 254 Most Valuable Professional