How to add warning before deleting record in AGOL

450
1
12-23-2019 10:03 AM
HypotheticalInsight
New Contributor

I have a webmap setup where the user can create a new polygon or edit an existing polygon using the Edit tool.  The problem is, the Delete button is right next to the Close button and if accidentally clicked, the record is gone for good.  

If the Delete button is clicked on accident, I'd like a message window to appear stating "Are you sure you want to delete this record" and the user can simply click No or Yes. 

Is this logic possible to incorporate into the webmap using WebAppBuilder or other means?

Thanks!

0 Kudos
1 Reply
by Anonymous User
Not applicable

The Edit widget in Web AppBuilder has an undo/redo option that may satisfy this requirement. You may have to configure a custom widget using Web AppBuilder Custom Widgets‌ to obtain a warning message. 

Hope this helps,

-Peter

0 Kudos