# Confirming Form Cancel?

**URL:** <https://community.glideapps.com/t/confirming-form-cancel/23372>\
**Category:** Ask for Help\
**Created:** [February 24, 2021, 5:56pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372 "2021-02-24T17:56:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evan\_Shelton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/evan_shelton/32/15463_2.png) [@Evan\_Shelton](https://community.glideapps.com/u/Evan_Shelton)\
**Post date:** [February 24, 2021, 5:56pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/1 "2021-02-24T17:56:22Z")

</div>

Is there a way to create a Confirmation screen pop over in my form when someone clicks “Cancel” ? I have a quite lengthy form and I want a pop-up to read:

“Are you sure you want to cancel this form? The information you entered will be lost?”

…or something to that effect. Is this possible?

---

<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:** [February 24, 2021, 11:53pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/2 "2021-02-24T23:53:19Z")

</div>

Sounds like you want a “modal” with an additional choice (to cancel the form or go back to continue).

Tagging @Lucas_Pires in here, does your modal CSS support buttons, I assume we can just add them as a component to show in the right place?

Also, the native “Cancel” won’t work as we don’t have any actions tied with it, so you will need to have a custom “Cancel” button first.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 25, 2021, 2:41am UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/3 "2021-02-25T02:41:53Z")

</div>

Just thinking out aloud, you could create a Cancel button that needs to be tapped twice.

- The first tap would just show a notification (“Are you sure?”), and flip a toggle
- The second tap would do the Cancel action, and flip the toggle again

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [February 25, 2021, 2:51am UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/4 "2021-02-25T02:51:36Z")

</div>

@Evan_Shelton what I did in one of my apps was to use increment action and set the visibility to the right components.

See below when I click in `Remover`(Remove), the app asks the user “Are you sure you want to remove this item from the cart?”

And I added to buttons

- `Remover Item` (Remove Item) - set column action to clear the values
- `Cancelar` (Cancel) - clear the increment once I set this visibility

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/1/81fb3d965879e1794bb33f6363bc814fb6c23304.jpeg)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/8/c8ecee68fa110b679e37e6d6f004562b14201d91.jpeg)

---

<div class="post-metadata">

**Author:** ![Evan\_Shelton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/evan_shelton/32/15463_2.png) [@Evan\_Shelton](https://community.glideapps.com/u/Evan_Shelton)\
**Post date:** [February 25, 2021, 2:35pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/5 "2021-02-25T14:35:25Z")

</div>

Okay. To give a little more detail: I have an app that healthcare workers will use (essentially as a digital survey form) to evaluate a patient. There are 7 parts to the evaluation. After, for example, the user finishes Part 1, they check a box “done” - those items from part 1 are hidden and the items from Part 2 become visible - this continues through Part 7. Some users, if they want to go back, are clicking the native Cancel button and losing everything.

Can the native Cancel button be removed from the form? As long as it is showing, there is a risk that someone will click it and have to start from the beginning.

---

<div class="post-metadata">

**Author:** ![John\_Burdine\_Jr](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/john_burdine_jr/32/9776_2.png) [@John\_Burdine\_Jr](https://community.glideapps.com/u/John_Burdine_Jr)\
**Post date:** [February 25, 2021, 4:50pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/6 "2021-02-25T16:50:13Z")

</div>

I share this concern for my app too.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 28, 2021, 6:50pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/7 "2021-02-28T18:50:33Z")

</div>

For something like this I would probably consider a custom form. This would just be a detail screen with components that fill user specific columns, so as they enter data, it will be filling the column values in the table. You can use buttons to set visibility to show different sections or parts of the form. Once they have completed filling out he form, you could have a submit button which use a compound action to first use an Add Row action to take the user specific column values and write those values to a sheet. Then a second Set Column action that will clear all of those user specific columns, so it’s ready for the next form entry. This removes the need for the built in form and gives you a little more flexibility. Without the need to use the built in form, then there will not be a Cancel button for them to click.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [February 28, 2021, 7:09pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/8 "2021-02-28T19:09:16Z")

</div>

You can use conditional CSS to cover cancel and accept buttons, and add confirm button to uncover

---

<div class="post-metadata">

**Author:** ![Evan\_Shelton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/evan_shelton/32/15463_2.png) [@Evan\_Shelton](https://community.glideapps.com/u/Evan_Shelton)\
**Post date:** [March 2, 2021, 3:54pm UTC](https://community.glideapps.com/t/confirming-form-cancel/23372/9 "2021-03-02T15:54:52Z")

</div>

Thanks all. Uzo’s trick worked for me, but I think I may eventually invest some time to build a form as you suggest, Jeff. Cheers!
