Select to view content in your preferred language

Is there a way to add a save button and a prompt on delete for the default editor widget?

3911
3
12-23-2014 12:16 PM
ChrisSergent
Deactivated User

I am currently using the widget here: Default editing widget | ArcGIS API for JavaScript

I was asked if I could add a save button(I know saves are automatic). And if there is a way that I could add a prompt when the user clicks the delete button. I don't see a method for it and I tried creating an alert after I looked at the inspect element; even though the name was correct, it did not work.

Any ideas?

Thanks.

Chris

Tags (1)
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Chris,

Take a look at this sample:

Using the attribute inspector | ArcGIS API for JavaScript

0 Kudos
ChrisSergent
Deactivated User

That's the attribute inspector, a different widget. It does not appear to have the capabilities to create new features like the editor widget and I don't see a way to add a prompt. I did see a way to add a save button, but I'm not sure how to add that onto the editor widget and I don't see a save method in API documentation.

0 Kudos
JasonJaworski
Emerging Contributor

Did you ever figure this out? Or does anyone have a solution to this?  I am using the editor widget and would also like to add a Save button (which will also send a notification email that a new location was added), and a prompt before deleting a point. Thanks in advance

0 Kudos