# Data is dissappearing

**URL:** <https://community.glideapps.com/t/data-is-dissappearing/58851>\
**Category:** Ask for Help\
**Created:** [March 7, 2023, 2:00am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851 "2023-03-07T02:00:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [March 7, 2023, 2:00am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/1 "2023-03-07T02:00:04Z")

</div>

I have a very simple form. Where I am requesting GPS location.

On submit I have custom action, where I add in UUID, timesamp and then save the GPS.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/d/dd3ea3f1812ba238b94d05106b2d6cdc5758cddf.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/7/375bc2b798b28673180884b513499a1edd382434.png)

When I go to the table I see the entries, but in the app is not displaying the rows in the inline list.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/7/975550df9534f609177ecc1e4029e21cc496919e.png)

When I close the app in the editor and then go back in, the row is still there with some data but the rest is gone.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/6/466299517de932178c37d6a9ea7317cae5f987a3.png)

---

<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:** [March 7, 2023, 2:09am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/2 "2023-03-07T02:09:52Z")

</div>

Using an onSubmit action to set column values with an Add Form has always been a bit touch and go.  
You’d be much better off using screen/special values that are submitted together with the form.

Another option might be to try the new wait action to add a short delay before the Set Column Values, but personally I would even avoid that. Just submit everything in one shot.

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [March 7, 2023, 2:16am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/3 "2023-03-07T02:16:56Z")

</div>

Hi Darren,

Can you please give me a bit more direction on screen/special values that are submitted with the form ?  
thanks

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [March 7, 2023, 2:24am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/4 "2023-03-07T02:24:59Z")

</div>

I did a NEW Screen instead of a FORM and then created a button with a custom action to Add NEW ROW. It seems to be working for now.

Is that what you meant or some thing different.

---

<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:** [March 7, 2023, 2:46am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/5 "2023-03-07T02:46:54Z")

</div>

> [@Dan\_San](#):
>
> Can you please give me a bit more direction on screen/special values that are submitted with the form ?  
> thanks

In the left hand panel, add a new component. You will see a bunch of different components that are not usually there, such as user profile components and special value components. I also prefer adding the necessary components this way instead of using On Submit. Like @Darren_Murphy said, On Submit touch and go.

> [@Dan\_San](#):
>
> I did a NEW Screen instead of a FORM and then created a button with a custom action to Add NEW ROW. It seems to be working for now.

This works, but will eat up edits faster.

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [March 7, 2023, 3:59am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/6 "2023-03-07T03:59:21Z")

</div>

Hi Jeff/Darren,

Thanks for this. I found the extra components, they seem to be only available on certain screens and that makes sense.

Two questions of clarification please

1. Is this just a graphical way of doing what is in the custom actions interface, and you are suggesting that it is better to use these components then to do it the custom action like I was ?
2. How will this save on edits ? With edits on new screen, does it not bunch all the edits together into one edit at the time of my writing using custom action ?

---

<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:** [March 7, 2023, 4:04am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/7 "2023-03-07T04:04:37Z")

</div>

> [@Dan\_San](#):
>
> only available on certain screens and that makes sense.

Yes, those extra components are available when you are on a Form screen, Add Form screen or Edit form screen.

> [@Dan\_San](#):
>
> Is this just a graphical way of doing what is in the custom actions interface, and you are suggesting that it is better to use these components then to do it the custom action like I was ?

There is a difference. When you use the component, it adds those values at the same time that the row is added. If you use On Submit, it attempts to update the row AFTER it has been added. That’s where you run into trouble, because the row may not be completely added when those actions run, and I suspect that is why you had problems.

> [@Dan\_San](#):
>
> How will this save on edits ? With edits on new screen, does it not bunch all the edits together into one edit at the time of my writing using custom action ?

Forms do not perform an update until you click on submit. On the other hand, a Detail Screen (including New Screen) will perform an update for each and every value that you change as you are changing them. That’s because they are directly updating the database in real time, unlike a form screen that only performs an update when you click on submit.

---

<div class="post-metadata">

**Author:** ![Dan\_San](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan_san/32/24085_2.png) [@Dan\_San](https://community.glideapps.com/u/Dan_San)\
**Post date:** [March 7, 2023, 4:39am UTC](https://community.glideapps.com/t/data-is-dissappearing/58851/8 "2023-03-07T04:39:26Z")

</div>

Ahh… I think I got it… Thanks guys.
