Ozcan,
These lines are what create the feature in the feature layer:
selectedTemplate.featureLayer.applyEdits([newGraphic], null, null, function() {
var screenPoint = map.toScreen(getInfoWindowPositionPoint(newGraphic));
map.infoWindow.setContent(attInspector.domNode);
map.infoWindow.resize(325, 185);
map.infoWindow.show(screenPoint, map.getInfoWindowAnchor(screenPoint));
templatePicker.clearSelection();
});
So just call all the code (lines 2 - 😎 without lines 1 and 9 and then once you add a save button to your Attribute Inspector then you can:
selectedTemplate.featureLayer.applyEdits([newGraphic], null, null);
here is a thread showing how to add the save button to the Attribute Inspector:
https://community.esri.com/thread/171824