# Are you sure you want to delete?

**URL:** <https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700>\
**Category:** Ask for Help\
**Created:** [November 18, 2021, 12:37pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700 "2021-11-18T12:37:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tj\_talusan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tj_talusan/32/23565_2.png) [@tj\_talusan](https://community.glideapps.com/u/tj_talusan)\
**Post date:** [November 18, 2021, 12:37pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/1 "2021-11-18T12:37:32Z")

</div>

I am doing a workaround to confirm if the user really wants to delete the record.

 ![1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/d/add24215e53cef3b28ad08297d4debca82ecd412.png)

Here I am using the increment to show and hide the Yes and No buttons. When the user taps Yes then I remove that row.

 ![2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/b/6bfba304622e2b54a137b152f291fc16a1f02271.png)

This is working for my use case. I am just wondering if you have a better solution for this?

TIA

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [November 18, 2021, 1:00pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/2 "2021-11-18T13:00:02Z")

</div>

In terms of design, I prefer yes and no buttons to appear in pop-ups, to prevent users from leaving the page before confirming their choice.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 18, 2021, 1:04pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/3 "2021-11-18T13:04:37Z")

</div>

I do something like this, but with a new screen and a button bar to “Cancel” or “Delete”. Main reason is to have a personalized message instead of the fixed one by Glide.

---

<div class="post-metadata">

**Author:** ![rxnxd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rxnxd/32/19208_2.png) [@rxnxd](https://community.glideapps.com/u/rxnxd)\
**Post date:** [November 18, 2021, 1:45pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/4 "2021-11-18T13:45:39Z")

</div>

Hi just want to chime in, i am solving this by using modal box css and button bar that ive found here.

![Deletemodal](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/a/ca1c26279f188942b1b625b8c892f7e3140c8478.webp)

By adding 1 column as flag which will be populated when i click cancel button

If cancel button is clicked \> set column values to 1  
Then set rich text (modal box) and button bar to appear when delete flag is not empty

If cancel button (modal box) is clicked \> set column values (clear delete flag)  
If yes button (modal box) is clicked \> set delete row (or even custom action with extra notification)

Cheers!

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [November 18, 2021, 2:01pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/5 "2021-11-18T14:01:34Z")

</div>

Halo @rxnxd Randy, Selamat bergabung dalam komunitas Glide.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 18, 2021, 2:35pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/6 "2021-11-18T14:35:04Z")

</div>

This method works well for details screen, but months ago I tried replicating it in an edit screen and it did not work well at all with desktop. I just abandoned that idea and used the new screen button until now.

---

<div class="post-metadata">

**Author:** ![rxnxd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rxnxd/32/19208_2.png) [@rxnxd](https://community.glideapps.com/u/rxnxd)\
**Post date:** [November 18, 2021, 2:44pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/7 "2021-11-18T14:44:54Z")

</div>

I see, i dont have any experience building desktop glide. Will try someday.

Btw thanks for the modal css, i believe i saw the css was from you.

---

<div class="post-metadata">

**Author:** ![rxnxd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rxnxd/32/19208_2.png) [@rxnxd](https://community.glideapps.com/u/rxnxd)\
**Post date:** [November 18, 2021, 2:45pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/8 "2021-11-18T14:45:54Z")

</div>

Thanks bro, long time lurker here.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [November 18, 2021, 3:09pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/9 "2021-11-18T15:09:58Z")

</div>

> [@rxnxd](#):
>
> Btw thanks for the modal css, i believe i saw the css was from you.

Anh ấy là bậc thầy về CSS ở đây @ThinhDinh.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [November 18, 2021, 3:16pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/10 "2021-11-18T15:16:21Z")

</div>

It’s a pity, where the use of detail screens will become complex in line with the number of text entries that must be included with all the limitations of the filling.  
Maybe you have a point, too, because the edit screen is intended to edit per section, not for the purpose of deleting entire lines.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [November 18, 2021, 11:29pm UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/11 "2021-11-18T23:29:34Z")

</div>

My reasoning for using a delete button in the edit screen is that it’s in line with what Glide did (they only have the delete button there before the introduction of the Delete row action). I think it’s totally fine if people want to separate those.

---

<div class="post-metadata">

**Author:** ![tj\_talusan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tj_talusan/32/23565_2.png) [@tj\_talusan](https://community.glideapps.com/u/tj_talusan)\
**Post date:** [November 19, 2021, 1:23am UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/12 "2021-11-19T01:23:47Z")

</div>

This is awesome. I can try and experiment 🙂

---

<div class="post-metadata">

**Author:** ![tj\_talusan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tj_talusan/32/23565_2.png) [@tj\_talusan](https://community.glideapps.com/u/tj_talusan)\
**Post date:** [November 19, 2021, 1:24am UTC](https://community.glideapps.com/t/are-you-sure-you-want-to-delete/34700/13 "2021-11-19T01:24:53Z")

</div>

This makes sense for customized messages. Thank you.
