The purpose of this was to place a combobox inside of an attribute inspector so that it behaves like a field domain during an editing session. The new combobox is created within the initEditor function like so: docSelect = new dijit.form.ComboBox({ id: "docSelect", name: "docSelect", value: "Pick a Document", store: store1, }, "docSelect");
you then add it to the attribute inspector: var layers = dojo.map(results, function(result) { return { featureLayer:result.layer, showAttachments:true, showDeleteButton:true, fieldInfos:[ {fieldName: "YOUR_FIELD", visible: true, 'tooltip': 'Document that the recommendation is from', 'label':"Doc. Title", 'customField': docSelect} ] }; });
Creating a domain and/or subsets within ArcMap is the simplest way to provide users with a predefined set of field values. However, say you need to have a field that dynamically filters based on an edit in another field (ex. U.S cities field filters based on the value one enters in States field); then placing a combobox that populates with a special query task may be the best option