# How to prompt user before exiting a form?

**URL:** https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949
**Category:** Ask for Help
**Created:** [November 23, 2021, 6:59am UTC](https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949 "2021-11-23T06:59:12Z")
**Posts on this page:** 5
**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 23, 2021, 6:59am UTC](https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949/1 "2021-11-23T06:59:12Z")

</div>

I have a lot of fields in my form and what I want to be able to do is when the user accidentally taps Cancel, it would prompt or warn the user to save the data first before exiting the form.

Is there a way to do this?

Thank you!

---

<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: [November 23, 2021, 7:13am UTC](https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949/2 "2021-11-23T07:13:05Z")

</div>

No, I don’t believe so.

To do something like that you would need to build your own [custom form](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014) screen.

---

<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 23, 2021, 2:01pm UTC](https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949/3 "2021-11-23T14:01:56Z")

</div>

Adding to what Darren said, if you’re building a custom form, the data the users enter, theoretically, will be there until they “submit” it (and you clear it with a set column action). If they want to go back to the previous screen then it’s totally fine, the data will still be there when they go back into your custom form.

---

<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 25, 2021, 5:50am UTC](https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949/4 "2021-11-25T05:50:37Z")

</div>

Thank you!

---

<div class="post-metadata">

### Author: ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)
#### Post date: [January 3, 2022, 7:24pm UTC](https://community.glideapps.com/t/how-to-prompt-user-before-exiting-a-form/34949/5 "2022-01-03T19:24:19Z")

</div>

> [@tj\_talusan](#):
>
> when the user accidentally taps Cancel, it would prompt or warn the user to save the data first before exiting the form.

Hi  
Have you figured out a way to do this, apart from the custom form idea/If-else concept?  
Thanks
