# Auto generate id

**URL:** <https://forum.radsystems.io/t/auto-generate-id/2214>\
**Category:** Uncategorized\
**Created:** [July 9, 2024, 9:07am UTC](https://forum.radsystems.io/t/auto-generate-id/2214 "2024-07-09T09:07:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxjo](https://forum.radsystems.io/user_avatar/forum.radsystems.io/mxjo/32/1223_2.png) [@mxjo](https://forum.radsystems.io/u/mxjo)\
**Post date:** [July 9, 2024, 9:07am UTC](https://forum.radsystems.io/t/auto-generate-id/2214/1 "2024-07-09T09:07:33Z")

</div>

how to make the ID code automatically appear in the ID textbox, for example ALI0724001, ALI-07 as month, 24 as year and 001 as serial number. can anyone help me?

 ![AUTO GENERATE](https://forum.radsystems.io/uploads/default/original/2X/4/4dcc5736cc92a29e8b4f6dcc58273d4b2e57a723.png)

---

<div class="post-metadata">

**Author:** ![willvin](https://forum.radsystems.io/user_avatar/forum.radsystems.io/willvin/32/7_2.png) [@willvin](https://forum.radsystems.io/u/willvin)\
**Post date:** [July 9, 2024, 11:35am UTC](https://forum.radsystems.io/t/auto-generate-id/2214/2 "2024-07-09T11:35:37Z")

</div>

Use Javascript to get the month and year [JavaScript Date Methods (w3schools.com)](https://www.w3schools.com/js/js_date_methods.asp). You have to randomize the last 3 digits else you will have to write an endpoint that you can call to get the next serial number.

---

<div class="post-metadata">

**Author:** ![mxjo](https://forum.radsystems.io/user_avatar/forum.radsystems.io/mxjo/32/1223_2.png) [@mxjo](https://forum.radsystems.io/u/mxjo)\
**Post date:** [July 9, 2024, 3:35pm UTC](https://forum.radsystems.io/t/auto-generate-id/2214/3 "2024-07-09T15:35:52Z")

</div>

Is there a link for me to find that information?
