# "on submit" action not triggered the first time

**URL:** <https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539>\
**Category:** Ask for Help\
**Created:** [May 21, 2024, 1:40pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539 "2024-05-21T13:40:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 21, 2024, 1:40pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/1 "2024-05-21T13:40:31Z")

</div>

Hi all,

I’m having a strange issue that may be a bug.  
I couldn’t find any related post on the forum, but maybe you’ll see what I’m missing here.

I have a “save” action that should be triggered when my form is submitted.  
The action is basic, is writes the value of a calculated attribute and display a success notification. I added another notification before for debug reason.

It looks like this “save” action is not triggered the first time.  
Here is the video with my configuration and the issue :  
https://www.loom.com/embed/469e24f5050f4eeabe1d82fdb7be077e?sid=a68f811f-f666-430b-88da-5da549495271

Any idea about what may be the issue?  
Thanks for your help!

---

<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:** [May 21, 2024, 3:32pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/2 "2024-05-21T15:32:27Z")

</div>

On Submit actions run very quickly and not necessarily synchronously. It’s possible that the newly added row had not been fully added with all computed columns processed by the time the On Submit actions run. I usually avoid On Submit if I can for this reason.

I would try introducing a short Wait or Wait For action at the beginning of your action flow to give the newly added row a chance to get fully established before running the rest of your actions.

---

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 22, 2024, 8:53am UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/3 "2024-05-22T08:53:51Z")

</div>

Thanks Jeff.

I’ve actually tried this solution and added a wait, but the wait itself wasn’t executed. Actually, the whole submission isn’t executed, not only the On Submit action. We can see in the video that the attribute “timer” remains the same after I’ve submit the first time. I removed the On submit action and I still have this problem : the first submit is simply skipped.

I suspect that a javascript function is causing this issue.  
I have a function that serialise all questions of the quizz into a Json.  
I’ll try to remove this column and see if that changes anything.

I’ll keep you posted.  
Thanks again.

---

<div class="post-metadata">

**Author:** ![burningmikey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/burningmikey/32/49706_2.png) [@burningmikey](https://community.glideapps.com/u/burningmikey)\
**Post date:** [May 22, 2024, 2:17pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/4 "2024-05-22T14:17:35Z")

</div>

Salut Xavier,

The JSON you create is with a JSON object/template or a string? I’ve been running into issues with the objects/template, but it always work with a string. Not sure if it’s relevant for your case but just sharing.

---

<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:** [May 22, 2024, 4:11pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/5 "2024-05-22T16:11:38Z")

</div>

> [@Xavier\_Delplanque](#):
>
> Actually, the whole submission isn’t executed, not only the On Submit action

Based on what I’m seeing in your video, this feels like a bug. I’m not seeing anything obviously wrong unless there is a sync issue. What are you using for a data source for your tables?

---

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 22, 2024, 4:23pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/6 "2024-05-22T16:23:05Z")

</div>

It’s a string that I write with a javascript

---

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 22, 2024, 4:24pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/7 "2024-05-22T16:24:19Z")

</div>

Google sheet.  
I couldn’t use the Glide tables here since those data needs to be synced with another database.

---

<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:** [May 22, 2024, 5:31pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/8 "2024-05-22T17:31:36Z")

</div>

I’d be more suspicious if it was Airtable or Excel. I’ve never had issues with Google Sheets. I think you may want to submit a support ticket.

> **[Support | Glide Docs](https://www.glideapps.com/docs/reference/account/support#support)**
>
> How to get support if you're experiencing issues with Glide.

---

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 24, 2024, 1:39pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/9 "2024-05-24T13:39:35Z")

</div>

> [@Jeff\_Hager](#):
>
> s if it was Airtable or Excel. I’ve never had issues with Google Sheets. I think you m

Will do.  
I’ve just removed all JS column in case it caused some latency, but I still have the issue.

---

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 30, 2024, 2:13pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/10 "2024-05-30T14:13:07Z")

</div>

Hi all,

I reported a bug … but unfortunately the support link was broken 😅 ([Glide](https://go.glideapps.com/support/4c1f1e59-9668-40e5-97dd-2257ca825094)).

I managed however to find what caused the problem.  
It’s this column attribute :

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

The good new is that I don’t think I need it actually.  
I hope this can be useful to anybody running into this issue in the future.

---

<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:** [May 30, 2024, 2:31pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/11 "2024-05-30T14:31:15Z")

</div>

So you think using a Column Value component prevented your actions from running? Still seems odd. Just curious why you think that component was the problem?

---

<div class="post-metadata">

**Author:** ![Xavier\_Delplanque](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/xavier_delplanque/32/45565_2.png) [@Xavier\_Delplanque](https://community.glideapps.com/u/Xavier_Delplanque)\
**Post date:** [May 30, 2024, 3:18pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/12 "2024-05-30T15:18:51Z")

</div>

Well, I’ve actually deleted my components until I couldn’t reproduce, starting with what could cause problem (the HTML field and this hidden field). The exception was no longer raised in the js console, and I couldn’t reproduce the issue.

---

<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:** [May 30, 2024, 7:39pm UTC](https://community.glideapps.com/t/on-submit-action-not-triggered-the-first-time/73539/13 "2024-05-30T19:39:05Z")

</div>

Interesting.
