Hero for Gravity Forms
Gravity Forms Superpowers

Unique IDs

When you need to create coupon codes, reference numbers, or anything that needs to be random as well as unique, you can use unique IDs from the Advanced package.

They work the same as random IDs, but they are also guaranteed to be unique for each field. You can use them as Default Values for hidden fields.

When using unique IDs, it's important to consider the number of possible IDs. If the number is too low, then there's a chance to run out, in which case future entries will be blank.

For example, you can use the default format safely, as it offers over seven quadrillion possibilities. You can see the number of possibilities when editing the format in the admin panel.

Format

A uppercase letter
a lowercase letter
B uppercase or lowercase letter
N digit
C uppercase letter or digit
c lowercase letter or digit
D uppercase letter, lowercase letter or digit
X upper hexadecimal digit
x lowercase hexadecimal digit
P dissimilar uppercase letter
p dissimilar lowercase letter
Q dissimilar uppercase or lowercase letter
M dissimilar digit
I dissimilar uppercase letter or digit
i dissimilar lowercase letter or digit
J dissimilar uppercase letter, lowercase letter or digit
\ escape next character

Dissimilar characters are characters that look different from other characters. For example, I (the uppercase letter I), l (the lowercase letter L), and 1 (the number one) are not included, because they look very similar to each other.

Any character that follows a \ (backslash) will be escaped. For example, the format \NN will generate an N followed by a random digit, such as N5 or N7.