Skip to main content

Unique ID Generator Action for Bricks Form

Updated yesterday

The Unique ID Generator action generates a server-side unique identifier for every successful Bricks Form submission and writes it into a specified form field. You can optionally prepend a custom prefix.

This is ideal for tracking submissions, creating opaque references, or correlating entries across external systems.

Settings

After adding a Form element in Bricks, open Actions and select Unique ID Generator. A dedicated Unique ID Generator group appears with the following controls:

Field To Update

  • Purpose: Select the form field that will receive the generated ID.

  • Requirement: Must be set; otherwise, the action does nothing.

  • Recommendation: Use a Hidden field to avoid exposing the value to end users.

Prefix

  • Type: Text

  • Dynamic data: Supported (the value is rendered before sanitization).

  • Behavior: Optional string prepended to the generated ID, followed by a hyphen.

Compatibility with Other Features

  • Other Bricks Form actions: Because the ID is stored in a form field, subsequent actions (Email, Webhook, etc.) can reference it.

Usage Summary

  1. Prepare the form field
    Add a Hidden field to store the generated ID (e.g., label it Submission ID).

  2. Enable the action
    In Actions, select Unique ID Generator and, in its settings, choose your Hidden field under Field To Update.

  3. (Optional) Add a prefix
    Enter a prefix like order
    Resulting format: prefix-<id>.

Did this answer your question?