Adding default value to attribute using Editor Widget

709
1
Jump to solution
10-24-2014 01:35 PM
MatthewGoulet1
New Contributor III

Newbie question:

I have configured the sample application titled "Editor widget with simple toolbar". It is located at: Editor widget with simple toolbar | ArcGIS API for JavaScript

When a new feature is added to the map, the attribute popup is displayed wherein I can enter values. I would like to pass a value directly into one of these attributes (it will be passed in via url variable). In the best case scenario, the user wouldn't even see the field.

How can I update values for attributes? I have explored the attribute inspector, etc, but it's not clear to me how these work with the Editor Widget as in the sample code above.

Thank you,

Matt Goulet

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

Hi Matt,

If your feature service is coming from a ArcGIS Server service, it may be easier to associate a default value with the field.  See the following link:

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

View solution in original post

0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi Matt,

If your feature service is coming from a ArcGIS Server service, it may be easier to associate a default value with the field.  See the following link:

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

0 Kudos