I am creating an Arcade attribution express to use in Text content in a pop-up configuration. I would like to underline and change the font size of the title (normal text). I am imitating the many examples I've seen online but the attribute expression (attempting underline, only, first) just shows this:
Below is the code I am using
Var Fields = [
"ID: " + $feature.COID + TextFormatting.NewLine,
"Damage Present: " + $feature.DAMAGE
];
If (DomainName($feature, 'FLOW') == 'No') {
return "<UND>" + "Title" + "</UND>" + TextFormatting.NewLine + Concatenate(Fields);
} else {
return $feature.WEATHER24;
}
Any thoughts??
Thanks!
Solved! Go to Solution.
Perhaps you could use an Arcade popup element and use HTML tags.
Something like
Var Fields = [
"ID: " + $feature.COID + '<br>',
"Damage Present: " + $feature.DAMAGE
];
var vTitle = ''
If (DomainName($feature, 'FLOW') == 'No') {
vTitle = '<u>Title</u><br>' + Concatenate(Fields)
}else {
vTitle = $feature.WEATHER24
}
return {
type : 'text',
text : vTitle //this property supports html tags
}
Perhaps you could use an Arcade popup element and use HTML tags.
Something like
Var Fields = [
"ID: " + $feature.COID + '<br>',
"Damage Present: " + $feature.DAMAGE
];
var vTitle = ''
If (DomainName($feature, 'FLOW') == 'No') {
vTitle = '<u>Title</u><br>' + Concatenate(Fields)
}else {
vTitle = $feature.WEATHER24
}
return {
type : 'text',
text : vTitle //this property supports html tags
}
Thank you very much! I had thought about involving HTML but wasn't sure how to incorporate it. Your modification works great. I added a couple more components to change the font and color as well.
Var Fields = [
"ID: " + $feature.COID + '<br>',
"Damage Present: " + $feature.DAMAGE
];
var vTitle = ''
If (DomainName($feature, 'FLOW') == 'No') {
vTitle = '<span style="font-family: Times New Roman, serif; font-size: 20px; color: #8c0122"><b><u>Title</u></b><br></span>' + Concatenate(Fields)
}else {
vTitle = $feature.WEATHER24
}
return {
type : 'text',
text : vTitle //this property supports html tags
}