I am trying to setup a dropdown list of fields for a feature class. I am trying to use feature.fields.name but it keeps coming undefined, but it will tell me the amount of fields that are undefined. I can use Dojo.Json: console.log(dojoJson.toJson(featLyr.fields)); and get all the information about the fields but I cannot get just the field names.
Anyone ever hear of this problem were the feature.fields will work but the feature.fields.name will not?