# How does on submit work

**URL:** https://community.glideapps.com/t/how-does-on-submit-work/66625
**Category:** Ask for Help
**Created:** [September 29, 2023, 12:58pm UTC](https://community.glideapps.com/t/how-does-on-submit-work/66625 "2023-09-29T12:58:07Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [September 29, 2023, 1:44pm UTC](https://community.glideapps.com/t/how-does-on-submit-work/66625/4 "2023-09-29T13:44:36Z")

</div>

> [@Dan\_San](#):
>
> I then gave each user a prefix and the concat it to the nexjob, but it seems to work intermittently, sometimes it works and sometime it doesn’t leaving the jobID blank

I remember that. This one, yes? 👇

> [@Field Not Populating](https://community.glideapps.com/t/field-not-populating/65359/6):
>
> Thanks. So I got the affected user to login to a different machine and it seemed to work fine. I then back to the original machine and delete the cookies and cached data. I am monitoring it, I think it is working. I will update you guys later. How to calculate JobID ? I use rollup in Maxjob column to give me the highest job number already used from IDsequence (see below on explanation) I then calculate NextJob = MaxJob + 1 ---- this was then used as jobID at time of creating the jo…

Although I didn’t study your implementation in detail, the general approach seemed quite sound to me, and I would have thought it should work.

How were you setting the JobID?

If you were doing it as an onSubmit action, then I’m not surprised it didn’t work reliably.  
But if you were to pass it with the form as a User Profile value, then I’d expect it to be a pretty solid solution.

---

_[View the full topic](https://community.glideapps.com/t/how-does-on-submit-work/66625)._
