AnsweredAssumed Answered

When editing, how can I fill out attributes programatically?

Question asked by CCSF on Dec 12, 2016
Latest reply on Dec 12, 2016 by rscheitlin

I have a use case where I would like the users to add points and lines to a map, but the attributes should be added via code.  I am using an editor widget based on this sample.  ArcGIS API for JavaScript Sandbox    

 

Let's say I wanted to add a value 1234  to the "issue_id" attribute when the user created a new feature for the operationsPointLayer in the sample code above?  Where in the code would I apply the attribute values?  

Thanks in advance!

Outcomes