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.
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.
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.
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.
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?
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.
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.
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.