Bug
| Bug ID Number | BUG-000158808 |
|---|---|
| Submitted | June 5, 2023 |
| Last Modified | February 20, 2025 |
| Applies to | ArcGIS Online |
| Version found | February 2023 |
| Operating System | Windows OS |
| Operating System Version | 11.0 64 bit |
| Version Fixed | 4.30 |
| Status | Fixed |
Change the Arcade expression so the features are named in the same order as listed in the data overview of the hosted feature layer. In this example, the field 'Hobby' is listed first, followed by 'FavoriteColor', 'FavoriteBook', and 'FavoriteAnimal' as depicted in the screenshot below:
So, the query becomes as follows:
$feature.Hobby + TextFormatting.NewLine +
$feature.FavoriteColor + TextFormatting.NewLine +
$feature.FavoriteBook + TextFormatting.NewLine +
$feature.FavoriteAnimal
or:
var hobby = $feature.Hobby
var farbe = $feature.FavoriteColor
var buch = $feature.FavoriteBook
var tier = $feature.FavoriteAnimal
if (isempty(hobby)){
hobby = "."
}
else if (isempty(farbe)){
farbe = "."
}
else if (isempty(buch)){
buch = "."
}
else if (isempty(tier)){
tier = "."
}
var label = hobby + TextFormatting.NewLine + farbe + TextFormatting.NewLine + buch + TextFormatting.NewLine + tier;
return label
Afterwards, the labels are depicted for all features in ArcGIS Online Map Viewer.
Bug ID: BUG-000158808
Software:
Get help from ArcGIS experts
Download the Esri Support App