cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AMH08
Level: Powered On

Changing FontWeight on Last 6 Characters of Label

Hello, I am working with a VIN label. I would like the label to contain the whole VIN. However, people often quickly reference vehicles by the last 6 characters of the VIN so I'd like for there to be a way for the last 6 characters to stand out in the text without having to replicate the data into another label. 

 

The only thing I can think of doing is putting two labels next to eachother and using substrings to break the VIN up then setting fontweight accordingly. 

 

Is there another (easier) way to set the FontWeight of a label text so that it bolds the last 6 characters in the label but puts normal weight on the rest of the label text?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mmattar
Level: Powered On

Re: Changing FontWeight on Last 6 Characters of Label

Hello AMH08, what i think would help is using HTML Text Label

3 REPLIES 3
mmattar
Level: Powered On

Re: Changing FontWeight on Last 6 Characters of Label

Hello AMH08, what i think would help is using HTML Text Label

AMH08
Level: Powered On

Re: Changing FontWeight on Last 6 Characters of Label

Thank you very much for pointing me in the right direction. With that field pointed out to me, I was able to craft an expression in the HtmlText like so which works wonderfully:

 

Concatenate(Left(ThisItem.VIN, Len(ThisItem.VIN)-6), "<b>", Right(ThisItem.VIN,6), "</b>")

mmattar
Level: Powered On

Re: Changing FontWeight on Last 6 Characters of Label

Glad i could help Smiley Happy 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 205 members 4,547 guests
Please welcome our newest community members: