Select to view content in your preferred language

Inserting text in labels

2222
3
Jump to solution
07-26-2022 11:37 AM
jbcypreste
Occasional Contributor

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!

0 Kudos
3 Solutions

Accepted Solutions
KenBuja
MVP Esteemed Contributor

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}]`

View solution in original post

AdrianWelsh
MVP Honored Contributor

Using Arcade, you can just throw Collection in front with quotes and a plus sign, like this:

AdrianWelsh_0-1658864133777.png

 

Arcade text:

"Collection " + $feature.RiverName

 

This documentation also has tips on how to do this:

https://pro.arcgis.com/en/pro-app/2.8/help/mapping/text/specify-text-for-labels.htm#GUID-47151603-A0...

 

View solution in original post

AndyAnderson
Frequent Contributor

Or Python:

'Collection [' + [River Name] + ']'

View solution in original post

3 Replies
KenBuja
MVP Esteemed Contributor

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}]`
AdrianWelsh
MVP Honored Contributor

Using Arcade, you can just throw Collection in front with quotes and a plus sign, like this:

AdrianWelsh_0-1658864133777.png

 

Arcade text:

"Collection " + $feature.RiverName

 

This documentation also has tips on how to do this:

https://pro.arcgis.com/en/pro-app/2.8/help/mapping/text/specify-text-for-labels.htm#GUID-47151603-A0...

 

AndyAnderson
Frequent Contributor

Or Python:

'Collection [' + [River Name] + ']'