# Edit and Action not saving as expected

**URL:** <https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938>\
**Category:** Ask for Help\
**Created:** [December 22, 2023, 3:50am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938 "2023-12-22T03:50:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnny\_Knox](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/johnny_knox/32/67695_2.png) [@Johnny\_Knox](https://community.glideapps.com/u/Johnny_Knox)\
**Post date:** [December 22, 2023, 3:50am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/1 "2023-12-22T03:50:42Z")

</div>

This community is amazing! So many helpful responses already. I have learned so much but must be missing some obvious. Here is the problem:

1. I created a button on a record. It opens a sub page which has a Form Container in. I can make changes.  

2. I think I understand that I only should set Mesenger\_id in columns since it is the unique identifier.  

3. The contact page is rewritten every few minutes from an external process so can update the page for the user to see, but I also need to create a new row in a timestamp document which a backend process will pull in to refresh main page. To do this I create a action.  

4. In Action I set to update row:  

As well as Create new row in Coach Update Document:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/5/a5cb3a483e5daa790b5613372e9e96397027abed.jpeg)

1. The new row seems to be created ok, but the original sheet document doesn’t update. Am I doing something wrong?

---

<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 22, 2023, 4:29am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/2 "2023-12-22T04:29:48Z")

</div>

So you are wanting to update values in the new row that has just been added?

This is known to not be 100% reliable, and is generally not recommended. A better approach is to pass the values together with the form submission, so they are part of the add row action. There are various ways to do this, depending on where the values come from.

> **[Column Values | Glide Docs](https://www.glideapps.com/docs/reference/values/column-values#column-values-in-submission-screens)**
>
> Column values are the values contained in your data source tables.

---

<div class="post-metadata">

**Author:** ![Johnny\_Knox](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/johnny_knox/32/67695_2.png) [@Johnny\_Knox](https://community.glideapps.com/u/Johnny_Knox)\
**Post date:** [December 22, 2023, 7:28am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/3 "2023-12-22T07:28:50Z")

</div>

@Darren_Murphy thanks for responding. No, I just want to update the existing row, then create a new row in another table with that same data. I can get the new row to create just fine. It is in the updating of the existing row that I am having trouble.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [December 22, 2023, 8:40am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/4 "2023-12-22T08:40:16Z")

</div>

> [@Johnny\_Knox](#):
>
> It opens a sub page which has a Form Container

Is the action associated with the edit button “Show edit screen”?

---

<div class="post-metadata">

**Author:** ![Johnny\_Knox](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/johnny_knox/32/67695_2.png) [@Johnny\_Knox](https://community.glideapps.com/u/Johnny_Knox)\
**Post date:** [December 22, 2023, 9:56am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/5 "2023-12-22T09:56:22Z")

</div>

I’ve tried both the

- Show New Page  
and
- Show Edit Page

options but I have the same problem both ways.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [December 22, 2023, 10:14am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/6 "2023-12-22T10:14:00Z")

</div>

I think you are creating unnecessary complexity.

In your 1st version, I would keep things simple:

- If you want to edit a row (a Contact), use a “Show edit screen” action from the detail screen of that item/row.
- If you want to add a row (a new Coach), use a “Show form screen” action.
- You could keep those two actions separate: start one and finish it, start the other and finish it.

---

<div class="post-metadata">

**Author:** ![Johnny\_Knox](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/johnny_knox/32/67695_2.png) [@Johnny\_Knox](https://community.glideapps.com/u/Johnny_Knox)\
**Post date:** [December 26, 2023, 6:21am UTC](https://community.glideapps.com/t/edit-and-action-not-saving-as-expected/68938/7 "2023-12-26T06:21:04Z")

</div>

@nathanaelb thanks for you feedback. I am aware this is not ideal. The issue is that I am not fully in charge of data stream. We have data being transposed and compiled from Postgres using Python into a Google Sheet that is updated every few minutes. So in that sense this table while editable will be overwritten every couple minutes. I want to be able to update the existing row for a minute of two so that the information shows on the Page layout, but this is only temporary. I also need to save to a “update” row on another tab that gets pulled into the Postgres data transformation so that the main page gets updated with the timestamp data.

If I try to use Edit Page I end up with two submit buttons so I instead went with a `New Page` action and then created a action that tries to update both the main page as well as the new changelog table. However what happens is that the main page gets a new row rather than being updated. I do get a new row added on timestamp table correctly.
