I'm trying to label polygons using two separate fields. I would like this to show on two separate lines. In desktop I use the vbnewline command. Is there an equivalent in Arcade?
Hi MaryAnn,
You can use TextFormatting.NewLine
The text constants are found here: Types | ArcGIS for Developers
thanks
Wendy
Hey Wendy, TextFormatting.NewLine works for me in Pro, but not in AGOL. I've tried Chrome and Firefox. Do you know if this should work?
"1" + TextFormatting.NewLine + "2"
Thanks!
Hi Natalie - it doesn't work in AGOL - it's a known issue at this point.
hope all is well!
wendy
Thanks Wendy!
Have we heard anything more if this has since become supported in AGOL?
Any news on this?
from the help... so I guess not, unless the help is out of date
Constants | ArcGIS for Developers
Inserts a new line, or line break, into the text. Multi-line labels are NOT supported in the ArcGIS API 3.x for JavaScript nor in the ArcGIS Online map viewer.
Returns "T2N R1W"
"T" + $feature.TOWNSHIP + TextFormatting.NewLine + "R" + $feature.RANGE
Unfortunately, this doesn't work.
That's what I said... it doesn't work. read the help snippet I posted