I am modifying this example: ArcGIS API for JavaScript Sandbox
1. I changed the data source
2. I added a couple text boxes to return the results of the selected
For some reason, which I cannot figure out, I am only returning the OBJECTID....none of the other fields are being returned.
I created this JSFiddle to show my mods....Edit fiddle - JSFiddle - Code Playground
Anyone out there see why all the other fields are not showing up??????
Solved! Go to Solution.
Jay,
You need to specify outFields in the FeatureLayer constructor.
csvLayer = new FeatureLayer({
title: "Counties",
url: url,
outFields: ["*"],
popupTemplate: {
...
Updated JSFiddle: Edit fiddle - JSFiddle - Code Playground
Jay,
You need to specify outFields in the FeatureLayer constructor.
csvLayer = new FeatureLayer({
title: "Counties",
url: url,
outFields: ["*"],
popupTemplate: {
...
How did I miss that.....oh man....
Thanks Robert