---
title: "Adding a Unique ID to Each Form Submission - Convert Forms"
description: "Each form submission in Convert Forms already has a built-in unique ID. This is a sequential number (e.g., 1, 2, 3…) that serves as the primary key"
url: "https://www.tassos.gr/docs/convert-forms/functionality/unique-ids-for-submissions"
date: "2026-05-06T23:16:03+00:00"
language: "en-GB"
---

[ Home ](https://www.tassos.gr/index.php?option=com_content&view=category&layout=blog&id=24&Itemid=1088) / [ Convert Forms ](https://www.tassos.gr/index.php?option=com_content&view=category&id=43) / [ Functionality ](https://www.tassos.gr/index.php?option=com_content&view=category&id=60)

#  Adding a Unique ID to Each Form Submission

Each form submission in Convert Forms already has a built-in unique ID. This is a sequential number (e.g., 1, 2, 3…) that serves as the primary key for identifying each entry in the system.

While this built-in ID is perfectly fine for internal use, there are situations where you may want to generate a different type of identifier, one that’s random, less predictable, or formatted differently. For example, you might want to display a custom reference number to users after they submit a form, such as an order confirmation code or a case number. A custom ID can also be useful when syncing data with third-party systems that require a specific token format, or when you don’t want users to guess how many submissions your form has received.

## [Add a Hidden Field to Your Form](#add-a-hidden-field-to-your-form)

Follow the steps below to generate a unique reference number for each submission using Convert Forms.

1. Log in to your Joomla administrator
2. Go to Components -&gt; Convert Forms
3. Click to edit your form
4. Go to Fields -&gt; Add Field
5. Add a Hidden field to the form
6. Set the **Field Name** to `unique_id` or something similar.
7. Set the **Default Value** to the `{randomid}` Smart Tag. The [Random ID Smart Tag](https://www.tassos.gr/docs/common/features/smart-tags/utilities#randomid) creates a random 8-character token for each submission and stores it in this hidden field. Example: `03bc431d0d605ce4`.

![add randomid to submission](https://www.tassos.gr/images/2025/04/add_randomid_to_submission.png)

 Hidden fields are not visible inside the form to your visitors, but we’re using this field to store the unique ID for internal reference so that it will display on the entry.

 If your site uses aggressive browser, server, or plugin-level caching, there’s a small chance that duplicate random IDs could occur. If you need guaranteed uniqueness, you may need to implement server-side validation or use a different approach.

## [Adding the Unique ID to Email Messages](#adding-the-unique-id-to-email-messages)

To include the unique ID in your email notifications, use the Smart Tag for the hidden field. If your field is named unique\_id, use `{field.unique_id}.`

This will output the random ID in your email message, making it easy to reference in communications with users or backend workflows.

 Last updated on Mar 31st 2026 08:03

## Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://www.tassos.gr"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Home",
            "item": "https://www.tassos.gr/docs"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Convert Forms",
            "item": "https://www.tassos.gr/docs/convert-forms"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Functionality",
            "item": "https://www.tassos.gr/docs/convert-forms/functionality"
        },
        {
            "@type": "ListItem",
            "position": 5,
            "name": "Adding a Unique ID to Each Form Submission",
            "item": "https://www.tassos.gr/docs/convert-forms/functionality/unique-ids-for-submissions"
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@type": "Article",
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.tassos.gr/docs/convert-forms/functionality/unique-ids-for-submissions"
    },
    "headline": "Adding a Unique ID to Each Form Submission",
    "image": {
        "@type": "ImageObject",
        "url": "https://www.tassos.gr/"
    },
    "publisher": {
        "@type": "Organization",
        "name": "Tassos",
        "logo": {
            "@type": "ImageObject",
            "url": "https://www.tassos.gr/https://www.tassos.gr/media/brand/logo-text.png"
        }
    },
    "author": {
        "@type": "Person",
        "name": "Tassos Marinos",
        "url": "https://www.tassos.gr/docs/convert-forms/functionality/unique-ids-for-submissions"
    },
    "datePublished": "2025-04-16T09:44:34+03:00",
    "dateCreated": "2025-04-16T09:44:34+03:00",
    "dateModified": "2026-03-31T08:30:29+03:00"
}
```
