FeatureForm does not show coded value domains descriptions when editable is set to false. See WorkType field name below.
const featureLayer = new FeatureLayer({
url: "https://ddotgis.dc.gov/arcgis/rest/services/Test/TestPoint/FeatureServer/0",
outFields: ["*"],
formTemplate: {
title: "Test Point",
description: "",
elements: [{
type: "group",
label: "",
description: "",
elements: [{
type: "field",
fieldName: "BudgetYear",
label: "Budget Year"
},
{
type: "field",
fieldName: "WorkType",
label: "Work Type",
editable: false
},
{
type: "field",
fieldName: "ProjectStatus",
label: "Status"
},
{
type: "field",
fieldName: "PercentCompleted",
label: "Percentage"
}
]
}]
}
});
Test site: https://codepen.io/markoskifle/pen/OJXzeyq?editors=1000