Bold Text within Arcade Expression

112
2
Jump to solution
10-07-2022 11:13 AM
Labels (1)
MelissaSalich
New Contributor III

I have an expression in Arcade and I want to bold only one part of it. 

 

$feature["SPACEID"] + TextFormatting.NewLine + "Wheel Chair Stations: " + $feature.WCHAIRACCESS + TextFormatting.NewLine + "Barrier Free Door: " + $feature.BARRFREEDOOR

 

How do I bold only SPACEID?

New map viewer, Portal

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RussellRoberts1
Esri Frequent Contributor

I would do 2 different label classes and set the position for the label with the label styling. 

RussellRoberts1_0-1665168565228.png

 

View solution in original post

0 Kudos
2 Replies
RussellRoberts1
Esri Frequent Contributor

I would do 2 different label classes and set the position for the label with the label styling. 

RussellRoberts1_0-1665168565228.png

 

0 Kudos
BernSzukalski
Esri Regular Contributor

Or, an easier way (assuming you're just doing text in a pop-up) might be to use an Arcade element. You have access to all the HTML formatting so making part of your text bold is easy, peasy.

0 Kudos