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?
You can use TextFormatting.NewLine
The text constants are found here: Types | ArcGIS for Developers
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"
Hi Natalie - it doesn't work in AGOL - it's a known issue at this point.
hope all is well!
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
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
Ooops, sorry about it. My bad.
But, it would be great to get this working again
Of course, it depends on what you are labelling and not just wanting to use Arcade.
python is more mature if you are in a pinch... Arcade is still under development
Retrieving data ...