Want to prevent autosaving of Editor widget.

1230
3
08-01-2016 07:34 AM
HarshitaGupta1
New Contributor II

Feature created automatically gets saved after clicking on map.I want to save features on Save button with Editor widget

0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Harshita,

I believe the following sample is what you're looking for:

Using the attribute inspector | ArcGIS API for JavaScript 3.17

HarshitaGupta1
New Contributor II

Hi Jake,

Can it not be done using editor widget?? Actually as soon as I select the template and click on map, the feature gets saved in database. I want to apply validations and after clicking on save button,the feature should be saved.

0 Kudos
KenBuja
MVP Honored Contributor

Take a look at this discussion over on gis.stackexchange about overriding the standard applyEdits function to allow for validation.