Select to view content in your preferred language

Text size?

497
2
Jump to solution
10-17-2022 06:58 AM
KalSsin
Regular Contributor

q2.jpg

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

Using Arcade, you can use the Split function to divide the text at the space. Construct a text string using the first value with formatting tags. Then, if there is a second value (most of rows in your table don't), add that value to the string

var arr = Split($feature.NAME, " ");
var output = `<FNT size = '20'>${arr[0]}</FNT>`;
if (Count(arr) > 1) {
  output += ` <FNT size = '12'> ${arr[1]}</FNT>`;
}
return output;

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

Using Arcade, you can use the Split function to divide the text at the space. Construct a text string using the first value with formatting tags. Then, if there is a second value (most of rows in your table don't), add that value to the string

var arr = Split($feature.NAME, " ");
var output = `<FNT size = '20'>${arr[0]}</FNT>`;
if (Count(arr) > 1) {
  output += ` <FNT size = '12'> ${arr[1]}</FNT>`;
}
return output;
KalSsin
Regular Contributor

Thank You So Much~~~~

0 Kudos