. There are over seven quadrillion combinations of letters and numbers. Click the refresh button to generate a different ID.
You can use Random IDs anywhere you see the icon, such as the Default Value of any field in the admin panel, under Advanced. To insert a random ID, use
Random IDs can be configured to create different patterns by specifying a format as a parameter. For example:
{random:AAAA}
will generate four uppercase letters, such as XZXS
or FZGH
, making up almost half a million possibilities. {random:AAA-NN}
will generate three uppercase letters followed by a dash and two numbers from 0 to 9, such as LRW-41
or MWQ-72
, for a total of almost two million possibilities. 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
.
{random}
as the Default Value. {random:AAAA}
as the Default Value. {random:AAA-NN}
as the Default Value. {random:\NPPI-NN}
as the Default Value. 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.
{unique}
as the Default Value. {unique:AAAA}
as the Default Value. {unique:AAA-NN}
as the Default Value. {unique:\NPPI-NN}
as the Default Value. If you have any issues with the plugin or any question at all, don't hesitate to ask! You can also contact us by email.