laptop and a wrench

Bug

If a field using subtypes is set as the label field in a FeatureLayer, then the coded value is displayed instead of the field description.

Last Published: September 24, 2020 ArcGIS API for JavaScript
Bug ID Number BUG-000133404
SubmittedAugust 27, 2020
Last ModifiedAugust 18, 2026
Applies toArcGIS API for JavaScript
Version found4.16
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed4.29
StatusFixed

Additional Information

In order to view the subtype name on the labels, the Arcade SubtypeName function is required to be added to the label class. Below is a sample from the developer site showing how to set this up programmatically. This can also be configured through the MapViewer labeling panel. Arcade function: https://developers.arcgis.com/arcade/function-reference/feature_functions/#subtypename Developer sample: https://developers.arcgis.com/javascript/latest/sample-code/layers-subtypegrouplayer/?view=playground-only

Steps to Reproduce

Bug ID: BUG-000133404

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options