# How to generate a unique report number?

**URL:** <https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098>\
**Category:** Product Support\
**Created:** [May 17, 2024, 1:53pm UTC](https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098 "2024-05-17T13:53:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [May 17, 2024, 1:53pm UTC](https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098/1 "2024-05-17T13:53:26Z")

</div>

Hello

My Mautic version is v3.3.4 (and we are still working on it, although we are planning to migrate to version 5)

I have a question and a small need.

After completing a simple form, I would like the user to receive a unique number generated, e.g. F4g8sj3 in e-mail.

How to do it?

Which field may be responsible for generating such a number?  
I do not want another number in the form of 10001, 100002 or the actual ID of a given report.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![floeby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/floeby/32/1444_2.png) [@floeby](https://forum.mautic.org/u/floeby)\
**Post date:** [July 15, 2024, 10:00am UTC](https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098/2 "2024-07-15T10:00:21Z")

</div>

> [@mojo](#):
>
> My Mautic version is v3.3.4 (and we are still working on it, although we are planning to migrate to version 5)
> 
> I have a question and a small need.
> 
> After completing a simple form, I would like the user to receive a unique number generated, e.g. F4g8sj3 in e-mail.
> 
> How to do it?
> 
> Which field may be responsible for generating such a number?  
> I do not want another number in the form of 10001, 100002 or the actual ID of a given report.

Have you found a solution?

---

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [July 15, 2024, 11:58am UTC](https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098/3 "2024-07-15T11:58:18Z")

</div>

> Have you found a solution?

No ☹

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 15, 2024, 11:59am UTC](https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098/4 "2024-07-15T11:59:46Z")

</div>

Hi, you can do it by using custom form actions plugin:

> **[GitHub - mtcextendee/mautic-form-actions-bundle](https://github.com/mtcextendee/mautic-form-actions-bundle)**
>
> Contribute to mtcextendee/mautic-form-actions-bundle development by creating an account on GitHub.

You use the twig syntax to populate customer fields based on form entries. In other words you can use the twig syntax to create unique ID and save it.

---

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [July 25, 2024, 4:15pm UTC](https://forum.mautic.org/t/how-to-generate-a-unique-report-number/32098/5 "2024-07-25T16:15:26Z")

</div>

Thank you, I’ll try it.
