# Is it possible to create a 6 digit Unique Id with Custom JS and set to hidden field to send data on submit form?

**URL:** https://community.elfsight.com/t/is-it-possible-to-create-a-6-digit-unique-id-with-custom-js-and-set-to-hidden-field-to-send-data-on-submit-form/45759
**Category:** Customization
**Created:** [March 30, 2024, 9:48pm UTC](https://community.elfsight.com/t/is-it-possible-to-create-a-6-digit-unique-id-with-custom-js-and-set-to-hidden-field-to-send-data-on-submit-form/45759 "2024-03-30T21:48:06Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Sina](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/sina/32/59970_2.png) [@Sina](https://community.elfsight.com/u/Sina)
#### Post date: [November 23, 2024, 5:52pm UTC](https://community.elfsight.com/t/is-it-possible-to-create-a-6-digit-unique-id-with-custom-js-and-set-to-hidden-field-to-send-data-on-submit-form/45759/5 "2024-11-23T17:52:39Z")

</div>

Hi there,

i have make another hidden field

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/6/4/6445a314b71adce66d5c022c714415d20c88aea2.png)  
Otherwise I couldn’t get the ID in the email.  
Field ID: [uniqueid] is empty in the email.  
The Field ID [total] will be sent to the email.  
I can’t explain why this is so  
So far so good.

@Max If you use the generated ID to create a continuous sequence of numbers in which the current date may also be hidden, you could use it as a ticket ID.  
That’s pretty well described here

> [@Unique ticket number per completed form in the notify me mail](https://community.elfsight.com/t/unique-ticket-number-per-completed-form-in-the-notify-me-mail/68115/8):
>
> The workaround with the date is possible using the Hidden field option. 
> 
> > **Add the Hidden field to your form**
> >
> > \<a class="lightbox" href="https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/6/f/6fe55d847e9ceda848b5c4088a3f5e5e6aceaaf7.png" data-download-href="/uploads/short-url/fXSpyayzdR3tNKuahdYIdOgDGHt.png?dl=1" title="image"\>[image]\</a\>
> 
> > **Copy the ID of the Hidden field and add it to the Subject field in the Notify Me section**
> >
> > [im…

This would also solve this proposal.  
@user887 just lock.

[https://community.elfsight.com/t/submission-id-on-forms/16192](https://community.elfsight.com/t/submission-id-on-forms/16192)

Do you still have ideas about this?

regards Sina

---

_[View the full topic](https://community.elfsight.com/t/is-it-possible-to-create-a-6-digit-unique-id-with-custom-js-and-set-to-hidden-field-to-send-data-on-submit-form/45759)._
