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;
Thank You So Much~~~~
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.