{#let id=(id.or("idGeneratorAddEditForm"))}
Required. A helpful name to give the generator. Must be unique.
What this generator generates id's for. Informs what generators appear in generator searches in different contexts.
Specify none for any usages.
Not changeable after generator creation.
If to encode the resulting text. This obfuscates the real value while remaining unique.
Not changeable after generator creation.
Example: foo-\{inc} {#icons/arrowRight /} Zm9vLTAwMDAx
If the resulting generated ids will be barcodes or not.
The format for the generator.
Required, not changeable after generator creation.
Supported format placeholders:
  • Datetime: \{dt;format}- Insert a formatted local datetime. Format should match standard Java datetime syntax. Default format is MM/dd/yyyy-HH:mm:ss
  • Uuid: \{uuid}- a standard java-generated uuid, which will look like: 62db9e28-8ec1-4064-b691-b8e667bbf181
  • Random: \{rand;length}- a random series of digits and letters. Min length is 1, max length is 50. Length defaults to 6.
  • Increment: \{inc;padding;base}- an auto-incrementing number. Options:
    1. Padding: How many digits to pad out to. For example, a value of 6 produces 000001. Defaults to 6
    2. Base: what base of number to use to increment; 10 for standard digits, 16 for base 16, etc. Defaults to 10
  • Date-based Increment: \{dateinc;format;padding;base}- an auto-incrementing number with associated datetime stamp. Counter resets on increment of the datetime. Options:
    1. Format: Required. A formatted local date/time. Format should match standard Java datetime syntax. The counter will reset on increment of this datetime stamp.
    2. Padding: How many digits to pad out to. For example, a value of 6 produces 000001. Defaults to 6
    3. Base: what base of number to use to increment; 10 for standard digits, 16 for base 16, etc. Defaults to 10
Examples:
  • Possible SKU of a shirt (C for "clothing", S for shirt, L for Large): C-S-L-\{inc} {#icons/arrowRight /} C-S-L-00001
  • \{dt}-\{inc} {#icons/arrowRight /} 01/30/2020-24:30:30-00001
  • Serial number incrementing and resetting based on manufacture date: \{dateinc;yyyy-MM-} {#icons/arrowRight /}
    1. 2024-03-00001 (first in March)
    2. 2024-03-00002 (second in March)
    3. ...
    4. 2024-04-00001 (first in April)