Feature created automatically gets saved after clicking on map.I want to save features on Save button with Editor widget
I believe the following sample is what you're looking for:
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.
Take a look at this discussion over on gis.stackexchange about overriding the standard applyEdits function to allow for validation.