Hello! I need help labeling a layer with one of its fields + a piece of text that will go on every label.
For example: My layer displays points of water collection, and already bears the name of the river on one of its fields.
I want to make the label display "Collection [River Name]". How do I insert this "Collection" on every label before the name of the river?
Thank you!
Solved! Go to Solution.
In the Label Properties window, make sure the Language is set to Arcade. In the Expression window, add
'Collection [' + $feature.RiverNameField + ']'
\\or use template literals
`Collection [${$feature.RiverNameField}]`
Using Arcade, you can just throw Collection in front with quotes and a plus sign, like this:
Arcade text:
"Collection " + $feature.RiverName
This documentation also has tips on how to do this:
In the Label Properties window, make sure the Language is set to Arcade. In the Expression window, add
'Collection [' + $feature.RiverNameField + ']'
\\or use template literals
`Collection [${$feature.RiverNameField}]`
Using Arcade, you can just throw Collection in front with quotes and a plus sign, like this:
Arcade text:
"Collection " + $feature.RiverName
This documentation also has tips on how to do this:
Or Python:
'Collection [' + [River Name] + ']'