HOW TO
In ArcGIS Online Map Viewer, multiline labels can be created using the Arcade custom expression builder. In this article's example, the California_Office_Branches layer contains information on the branches in California, as shown in the attribute table below.
Note: ArcGIS Online Map Viewer Classic does not support multiline labels.
The expression below is used to create a label displaying the Office_Size and Contact_Number field values on two separate lines for each office.
Note: The TextFormatting.NewLine constant inserts a line break between the two fields.
$feature["Office_Size"]+TextFormatting.NewLine+$feature["Contact_Number"]
Note: Repeat Steps 5(b), (c), (d), and (e) for every added field, replacing $feature["<field 2>"] with a preferred field before clicking Test.
The map below displays the office branches in California labeled with their respective office sizes and contact numbers on separate lines.
Get help from ArcGIS experts
Download the Esri Support App