When concatenating strings and attributes in ArcGIS online Arcade I would like to have the output in tow line.
In python it would be something like:
"Unit " + $feature.Unit + \n +$feature.Zone_
With the output looking like:
You're right. I should have tested it before posting. But the same expression is recognized by Pro 1.4 Alpha. So a workaround for now can be to author the label in Pro and then publish it. Maybe a support case can be filed to let esri know TextFormatting.NewLine is not working on ArcGIS Online?
Just to clarify, TextFormatting.NewLine is supported in Arcade from a language perspective. The problem you are seeing is related to the fact that currently ArcGIS Online does not support multi-line labels; that is independent of the labeling syntax.
I would also like to see this supported in ArcGIS Online.
Does anyone know if this has been logged as an enhancement or a bug so Esri can formally document it as something that needs addressed?