There are occasions where you’ll want your documents to print an auto-incremented value when generating one or more documents from a route. This is useful in situations where you need a unique number applied to every time you process that route; an invoice and invoice copy, coupons, tickets, filename, etc. To enable this feature:
- Open Your Route
Open the route you wish to apply this setting.
- Navigate to Advanced Settings Tab
Navigate to the “Settings” tab. To the right of the page, open the “Advanced Settings” dropdown.
- Apply Auto Number
Check “Auto Number“. Apply a starting value to number to output. This system will increment this value on each document generation. Click “Save Settings“.
- Use the Variable
Use
{$_route_auto_number}
in your document templates and other template specific DocuMerge fields (such as “File Name“). If you’re using a fillable PDF as your document template, you’ll use the “Field Map” to assign this variable to your applicable PDF field(s).
Note: when applying this as a document setting, you’ll use{$_auto_number}
. See: Documents Auto-Number