# Custom Action Data Disappearing After Submission

**URL:** https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921
**Category:** Ask for Help
**Created:** [October 8, 2024, 1:33pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921 "2024-10-08T13:33:03Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Rasmus\_Virkus](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rasmus_virkus/32/71221_2.png) [@Rasmus\_Virkus](https://community.glideapps.com/u/Rasmus_Virkus)
#### Post date: [October 8, 2024, 1:33pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/1 "2024-10-08T13:33:03Z")

</div>

When my users submit a form, I use a custom action to add additional details through “Set Column Values.” It works perfectly during testing, but after a few minutes, the data from the custom action disappears.

Interestingly, I have nearly identical actions working fine elsewhere in my app - it’s just this one that’s causing problems.

---

<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: [October 8, 2024, 1:36pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/2 "2024-10-08T13:36:59Z")

</div>

What kind of values are you setting? I usually don’t recommend using On Submit for something like that. You are usually better off adding the appropriate Value components to the form.

It’s better to set values when the row is added instead of of after it’s added.

---

<div class="post-metadata">

### Author: ![Trustin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trustin/32/88217_2.png) [@Trustin](https://community.glideapps.com/u/Trustin)
#### Post date: [October 8, 2024, 2:45pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/3 "2024-10-08T14:45:48Z")

</div>

If you are using the submit form, the row have yet to be created. I will be created upon submission clicked. But I think this conflicts with the immediate set column values as it happens simultaneously, the value may not be captured into the newly created row when the action completes

---

<div class="post-metadata">

### Author: ![Rasmus\_Virkus](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rasmus_virkus/32/71221_2.png) [@Rasmus\_Virkus](https://community.glideapps.com/u/Rasmus_Virkus)
#### Post date: [October 8, 2024, 4:26pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/4 "2024-10-08T16:26:31Z")

</div>

Hi Jeff, thanks for your response. I use set column values to set values like the step, project admin, date/time, and project type—things I don’t think can be set directly from the form. What would you recommend as an alternative?

---

<div class="post-metadata">

### Author: ![Rasmus\_Virkus](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rasmus_virkus/32/71221_2.png) [@Rasmus\_Virkus](https://community.glideapps.com/u/Rasmus_Virkus)
#### Post date: [October 8, 2024, 4:28pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/5 "2024-10-08T16:28:26Z")

</div>

Hi Trustin, I use the set column action upon form submission, so my expectation was that the row would be added with the form details first, and then the set column values would be applied afterward. If you’re correct, I now understand why it’s not working for me. Thanks for the clarification!

---

<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: [October 8, 2024, 4:30pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/6 "2024-10-08T16:30:41Z")

</div>

A lot of that stuff can be set from the form. Click the button to add a component to the form and you will see a lot more value components beyond the standard components you are used to. Take date for example, there is a Date special value component.

You can add components that pass values from the user profile, some special values, and any value from the parent row of the screen where the form was opened.

---

<div class="post-metadata">

### Author: ![Rasmus\_Virkus](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rasmus_virkus/32/71221_2.png) [@Rasmus\_Virkus](https://community.glideapps.com/u/Rasmus_Virkus)
#### Post date: [October 8, 2024, 4:39pm UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/7 "2024-10-08T16:39:14Z")

</div>

Thank you Jeff!

---

<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: [October 9, 2024, 7:38am UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/8 "2024-10-09T07:38:26Z")

</div>

You can also use components to set a default value to them, and if you don’t want them to be edited, hide them with a condition that will never be true. Those values would be passed to the destination row even though the component is hidden.

---

<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: [October 16, 2024, 7:39am UTC](https://community.glideapps.com/t/custom-action-data-disappearing-after-submission/76921/9 "2024-10-16T07:39:10Z")

</div>

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