# Row Deletion Warning for Users

**URL:** <https://community.glideapps.com/t/row-deletion-warning-for-users/35099>\
**Category:** Ask for Help\
**Created:** [November 26, 2021, 4:52pm UTC](https://community.glideapps.com/t/row-deletion-warning-for-users/35099 "2021-11-26T16:52:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VadymBohdan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vadymbohdan/32/21195_2.png) [@VadymBohdan](https://community.glideapps.com/u/VadymBohdan)\
**Post date:** [November 26, 2021, 4:52pm UTC](https://community.glideapps.com/t/row-deletion-warning-for-users/35099/1 "2021-11-26T16:52:16Z")

</div>

It’s strange that I didn’t find this by searching.  
But,  
If I allow users to delete a row, how do I warn them that there is no way to undo this action?  
I want to give them (and myself) one last chance. )

---

<div class="post-metadata">

**Author:** ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)\
**Post date:** [November 26, 2021, 5:49pm UTC](https://community.glideapps.com/t/row-deletion-warning-for-users/35099/2 "2021-11-26T17:49:55Z")

</div>

You’re best to use a custom button if you’d like to give users a warning, as opposed to simply turning on the ability to delete (which adds the “Delete item” button at the bottom of the screen).

What you can do is:

- Create a button that sets a user-specific column to something (say it’s “1”). Label the button as Delete
- Set the visibility of the button to hide itself when the user-specific column is 1
- Create a button bar where one button is something like “Really delete” (to confirm the deletion) and the other button is “Cancel”
- Set the visibility of the button bar to only be visible when the user-specific column is 1.
- Create an action for the “Really delete” button that deletes the row
- Create an action for the “Cancel” button that clears the value of the user-specific column.

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [November 26, 2021, 6:11pm UTC](https://community.glideapps.com/t/row-deletion-warning-for-users/35099/3 "2021-11-26T18:11:48Z")

</div>

Just to add to @kyleheney great response… one alternative to deleting a row is to filter them out. You could add an additional column as a flag, let’s say “isDeleted”.

Then in your app filter out the rows that are marked “isDeleted”. This would allow you to restore the row by simply removing the flag if needed.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 27, 2021, 6:12pm UTC](https://community.glideapps.com/t/row-deletion-warning-for-users/35099/4 "2021-11-27T18:12:02Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
