# Button component no longer allows clearing of values while editing

**URL:** <https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741>\
**Category:** Ask for Help\
**Created:** [May 7, 2022, 7:42pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741 "2022-05-07T19:42:43Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeneDrea](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/genedrea/32/38618_2.png) [@GeneDrea](https://community.glideapps.com/u/GeneDrea)\
**Post date:** [May 7, 2022, 7:42pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/1 "2022-05-07T19:42:43Z")

</div>

Greetings,

Some time ago I used a button to inside of a form to clear and reset values in a choices component. That button no longer works inside while editing, but it does work when I exit out back to the main screen.

I am glad that the values still clear, but it means that a person would have to exit out of editing if they made an error to reset it.

Does anyone know why this feature changed?

---

<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:** [May 7, 2022, 11:21pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/2 "2022-05-07T23:21:42Z")

</div>

Do you use a native form? Did you try to reset a choice in that form, and how does that even work? Can you give us some screenshots?

---

<div class="post-metadata">

**Author:** ![GeneDrea](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/genedrea/32/38618_2.png) [@GeneDrea](https://community.glideapps.com/u/GeneDrea)\
**Post date:** [May 8, 2022, 4:41am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/3 "2022-05-08T04:41:03Z")

</div>

Here are the screenshots. It is possible that I have used some terms incorrectly. Hopefully, it helps explain the situation better.

The first screenshot shows how the button is set to clear values.

 ![2022-05-07 (7)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/7/c743c90437d5b17726c1cc598498eb20e06d2a5b.png)

The button does not work on the edit screen, however, if copied and pasted to the detail screen it clears the choice components as the original button on the edit screen was supposed to do.

 ![2022-05-07 (7](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/d/2dbf01f1e2e44e978688e9a75552de84840aec4d.png)

When you return to the edit screen, the choices have been reset.

 ![2022-05-07 (6)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/3/033e6dbeb878d172f88b17b9518b76e7f00e3ec2.png)

This has only recently stopped working in my app and I noticed it would was not working in any of my apps, paid or free.

---

<div class="post-metadata">

**Author:** ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)\
**Post date:** [May 8, 2022, 7:24am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/4 "2022-05-08T07:24:46Z")

</div>

This will only work in new screen and values of adding a row or moving a focus to a certain row but I don’t think it will work in a form input

---

<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:** [May 9, 2022, 12:01am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/5 "2022-05-09T00:01:40Z")

</div>

I don’t think this would ever work in an edit screen, since it’s kind of a “sandbox” environment that temporarily stores your data for editing purposes.

I’m imagining it like this:

- Every time you click the edit button, Glide shows you a copy of your current data, and allow editing as much as you need.

- Once you click save, that temporary edited data is then written to your real data.

What you’re trying to do here is to manipulate the real data, while in a screen for the temporary data. I’m not sure why you said it worked before. Based on the setup I don’t think it would have ever worked the way you wanted to.

---

<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:** [May 9, 2022, 12:07am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/6 "2022-05-09T00:07:57Z")

</div>

I remember working on something like this with @Mark in the we’ll do it live sessions. Buttons should be able to clear values inside of forms and edit screens.

---

<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:** [May 9, 2022, 12:09am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/7 "2022-05-09T00:09:57Z")

</div>

But is it clearing the real value? So say I clear the values in the edit screen using a button like @GeneDrea did and then click “back” (not “done”/“save”) then the values that I cleared won’t come back, right?

---

<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:** [May 9, 2022, 12:10am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/8 "2022-05-09T00:10:33Z")

</div>

No, it should just be clearing the temp value. There’s no way to have that button clear the real values.

---

<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:** [May 9, 2022, 12:15am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/9 "2022-05-09T00:15:15Z")

</div>

Interesting. My observation for now is they don’t work like that, a button with set column clearing values in an edit screen does not clear anything at all.

---

<div class="post-metadata">

**Author:** ![kingzy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kingzy/32/15690_2.png) [@kingzy](https://community.glideapps.com/u/kingzy)\
**Post date:** [May 9, 2022, 1:42am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/10 "2022-05-09T01:42:40Z")

</div>

I had this problem as well and I realised it started sometime after 1st May.

Prior to that, my apps with this similar button worked fine, until 1st May.

My form had recorded entries fine until 27 April, that’s when it last stopped.

---

<div class="post-metadata">

**Author:** ![kingzy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kingzy/32/15690_2.png) [@kingzy](https://community.glideapps.com/u/kingzy)\
**Post date:** [May 9, 2022, 1:47am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/11 "2022-05-09T01:47:50Z")

</div>

My button updates a row column to True.

When it didn’t work, i added the switch and it works.

 ![Screenshot 2022-05-09 at 09-47-17 O PSYCH · Glide](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/c/ec8559e23b36179122a92b59bff5f17783f5767d.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:** [May 9, 2022, 11:01am UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/12 "2022-05-09T11:01:32Z")

</div>

Is the same true in a form?

---

<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:** [May 9, 2022, 12:00pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/13 "2022-05-09T12:00:56Z")

</div>

It does not clear anything, same as the edit form experiment.

---

<div class="post-metadata">

**Author:** ![GeneDrea](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/genedrea/32/38618_2.png) [@GeneDrea](https://community.glideapps.com/u/GeneDrea)\
**Post date:** [May 9, 2022, 1:05pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/14 "2022-05-09T13:05:00Z")

</div>

It definitely worked before. One of the GLIDE experts helped me with it and when I went back and asked why my button was no longer clearing, he was surprised that it no longer worked and figured out it would work if I moved it.

---

<div class="post-metadata">

**Author:** ![GeneDrea](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/genedrea/32/38618_2.png) [@GeneDrea](https://community.glideapps.com/u/GeneDrea)\
**Post date:** [May 9, 2022, 1:08pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/15 "2022-05-09T13:08:25Z")

</div>

Thank you for the feedback. It helps to know that I was not the only one to experience that change in functionality. It is a bit less convenient, but I figured out how to make it work.

Hmmm… Not sure what to indicate as the solution. 🤔

---

<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:** [May 9, 2022, 1:13pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/16 "2022-05-09T13:13:54Z")

</div>

Ya…buttons are supposed to work in edit/form screens. @mark @jason can y’all look into this?

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [May 13, 2022, 5:13pm UTC](https://community.glideapps.com/t/button-component-no-longer-allows-clearing-of-values-while-editing/41741/17 "2022-05-13T17:13:49Z")

</div>

Hi @GeneDrea

Could you submit a support ticket so we can take a look at this?

[https://glide-help.zendesk.com/hc/en-us/requests/new](https://glide-help.zendesk.com/hc/en-us/requests/new)
