# Clear values from Form Container

**URL:** https://community.glideapps.com/t/clear-values-from-form-container/68886
**Category:** Ask for Help
**Created:** [December 20, 2023, 4:12pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886 "2023-12-20T16:12:27Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Mauricio\_Gonzalez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauricio_gonzalez/32/65524_2.png) [@Mauricio\_Gonzalez](https://community.glideapps.com/u/Mauricio_Gonzalez)
#### Post date: [December 20, 2023, 4:12pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/1 "2023-12-20T16:12:27Z")

</div>

Hello! My apologies if this has been answered before - couldn’t find the answer in the community. Does anyone know how to clear values from a form container after the User closes the overlay? Video below:

> **[Screen Recording 2023-12-20 at 10.07.06 AM.mov](https://drive.google.com/file/d/17XsIxa54zxDAVevKQVUekO2UPRitVnv2/view?usp=sharing)**
>
> Google Drive file.

Thanks!

---

<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: [December 20, 2023, 4:41pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/2 "2023-12-20T16:41:21Z")

</div>

The form would clear if you submitted it.

Rather than a Form Container on a detail screen overlay, I would probably just use a Form Screen. It will function exactly the same and you shouldn’t have the issue of values being retained when closing the form without submitting.

---

<div class="post-metadata">

### Author: ![Mauricio\_Gonzalez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauricio_gonzalez/32/65524_2.png) [@Mauricio\_Gonzalez](https://community.glideapps.com/u/Mauricio_Gonzalez)
#### Post date: [December 20, 2023, 4:49pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/3 "2023-12-20T16:49:54Z")

</div>

Thanks for the quick reply, Jeff!

The reason why I am using a form container is because I have a custom text entry for validation (the video above is just an example).

The issue that I am facing is when a given user closes the overlay instead of clicking “submit”. Is this something that could be adjusted?

Here is the real app:

- The admin will need to include a valid phone number before proceeding with the reservation. The problem is that the information from the previous form will remain there if it is not submitted. Not a major problem, just not ideal.

[Screen Recording 2023-12-20 at 10.47.54 AM.mov - Google Drive](https://drive.google.com/file/d/1kwBWflcU4dRvAOIStGM_aJy8jFpiyZRZ/view?usp=sharing)

---

<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: [December 20, 2023, 4:56pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/4 "2023-12-20T16:56:31Z")

</div>

In that case, I think you have to adjust the action that opens that overlay to be a custom action that first clears any fields before opening the form.

---

<div class="post-metadata">

### Author: ![Mauricio\_Gonzalez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauricio_gonzalez/32/65524_2.png) [@Mauricio\_Gonzalez](https://community.glideapps.com/u/Mauricio_Gonzalez)
#### Post date: [December 20, 2023, 5:05pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/5 "2023-12-20T17:05:55Z")

</div>

Understood! Is there any way I can clear the fields from this form? I did clear the “phone number” number entry, but can’t find a way to clear the form container values… ☹

 ![Screenshot 2023-12-20 at 11.05.26 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/9/f9d79e8aa25c98228ee7037d579d7051622cf8ec.jpeg)

---

<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: [December 20, 2023, 5:12pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/6 "2023-12-20T17:12:52Z")

</div>

Not any way that I can think of. I suppose it’s essentially showing and hiding the same screen, so it just picks up where you left off. I guess I really haven’t ever used the form container before, so I didn’t know it acted like that.

Probably would require a full custom form at this point.

---

<div class="post-metadata">

### Author: ![Mauricio\_Gonzalez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauricio_gonzalez/32/65524_2.png) [@Mauricio\_Gonzalez](https://community.glideapps.com/u/Mauricio_Gonzalez)
#### Post date: [December 20, 2023, 5:17pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/7 "2023-12-20T17:17:50Z")

</div>

Thanks, Jeff. Unfortunately, I was actually creating this as a way to avoid using custom forms due to the amount of updates it takes… I appreciate your help!

---

<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: [December 20, 2023, 5:21pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/8 "2023-12-20T17:21:14Z")

</div>

The below might give you some ideas.

> [@Radar Address Complete in Form](https://community.glideapps.com/t/radar-address-complete-in-form/63658/6):
>
> What I’ve been doing lately is to use what I’m calling “hybrid” forms: show new screen action instead of form screen add an input component for any input you want to validate against another table (using relations, etc) add a form container beneath the input for the remainder of the form, but only display the form container if the input outside of the form container is “valid”. This way you still have a form experience with less updates but can still leverage the custom form experience for th…

I think Bob has a tutorial on that one somewhere, but I can’t find it right now.

---

<div class="post-metadata">

### Author: ![Mauricio\_Gonzalez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauricio_gonzalez/32/65524_2.png) [@Mauricio\_Gonzalez](https://community.glideapps.com/u/Mauricio_Gonzalez)
#### Post date: [December 20, 2023, 5:40pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/9 "2023-12-20T17:40:53Z")

</div>

Thanks @Darren_Murphy @Robert_Petitto - I actually used this video to create the hybrid form (super helpful!). However, I believe the issue is that I am unable to clear the values of the form container if a given user closes the “new screen”. Not sure if this is something that Robert is already aware of 🤔

---

<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: [December 20, 2023, 5:44pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/10 "2023-12-20T17:44:12Z")

</div>

mmm, actually I think that is one reason why Bob uses that method, because half filled in forms don’t get reset if the screen is closed. So I think in his case, he considers it a “feature” to take advantage of.

As Jeff said, I don’t think there is any way to reset the values in a form container, other than to submit the form. At least, no way that I’m aware of.

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [December 20, 2023, 7:22pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/11 "2023-12-20T19:22:52Z")

</div>

Correct. For whatever reason, you can’t clear a form screen. I imagine there might be some sort of hack that I haven’t discovered yet…maybe something with visibility conditions…I’d have to play around with it.

What would be nice is if we could have a default value of “clear column” maybe?  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/e/0e6349cbef44e7dd26bc0432ab935f2a34b03182.png)

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [December 20, 2023, 7:31pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/12 "2023-12-20T19:31:18Z")

</div>

Until then, you probably just need a `start over` button with a set column action to clear the values (place it inside of the form container):  
 ![CleanShot 2023-12-20 at 14.30.00](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/4/343df9a13993b5aeef3eb098e328a9f7e7275bfe.gif)

---

<div class="post-metadata">

### Author: ![Mauricio\_Gonzalez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mauricio_gonzalez/32/65524_2.png) [@Mauricio\_Gonzalez](https://community.glideapps.com/u/Mauricio_Gonzalez)
#### Post date: [December 21, 2023, 2:56pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/13 "2023-12-21T14:56:35Z")

</div>

Oh, this is very helpful at least for now! Thanks so much @Jeff_Hager @Darren_Murphy @Robert_Petitto 🙏🏼

---

<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: [December 28, 2023, 2:57pm UTC](https://community.glideapps.com/t/clear-values-from-form-container/68886/14 "2023-12-28T14:57:17Z")

</div>

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