Asset tags, stock IDs, ticket numbers, and internal document references all need a code that’s easy to read and hard to mix up. The Serial Number Generator Form Template makes one on the spot: pick a three-letter prefix and how many digits you want, and the form builds a code like INV482913.
How Does the Serial Number Generator Form Template Work?
The template uses the WPForms Calculations addon to join the prefix to a random number of the length you chose. It works as a serial number generator, an asset tag generator, an inventory ID or SKU code generator, or a ticket number generator. Fields include:
- Prefix: Three letters, such as INV, SKU, or TKT, that show what the code is for.
- Number of Digits: A slider from 4 to 8 digits, set to 6 to start.
- Serial Number: The finished code. A new one appears whenever a setting changes.
- Email (optional): Visitors who want a record submit the form to get the code by email. The confirmation shows the same code that’s saved with the entry.
The digits are random, so two codes can match, especially at 4 digits (9,000 possible codes). If every number must be different, add the entry ID smart tag to the confirmation and notification, for example INV-{entry_id}, which gives each submission its own number. You’ll get an email for each code you save.
Get WPForms Pro to start using this template, along with 2,000+ other pre-made form templates.