Increment
Increment gives every successful submission of a form its own sequential number. Unlike the entry ID or the form ID, you control where the numbering starts and how it looks, which makes it a good fit for order numbers, payment references, ticket numbers or application IDs.
This is what makes it possible to use Forms as a payment processor front end — payment gateways need a unique, predictable reference for every transaction, and the increment provides exactly that.
How to use it
Section titled “How to use it”Open the form settings and go to the General → Increment tab.
- Increment start number — the number the counter starts from.
- Increment length number — the minimum length of the output. Shorter numbers are padded with leading zeros, so a length of
5turns42into00042.
The same tab shows the current increment for that form, with a Reset button next to it that sets the counter back to the start number.
Where the number is used
Section titled “Where the number is used”The counter is bumped on every successful submission, and the new value is available in several places:
- E-mails — use the
mailerIncrementIdtemplate tag in the mailer subject or template to print it in the email. - Entries — enable Increment ID under the entries additional values settings to store it alongside the submitted data.
- Payment integrations — Corvus uses it as the
order_numberand Paycek as thepaymentId.
Payment processor flow
Section titled “Payment processor flow”A typical setup, when a form is used to take payments:
- Set the increment start number to a value that doesn’t collide with any references already used in the payment gateway.
- Set the increment length so the reference matches the format you want to see in the gateway’s dashboard.
- Enable the Increment ID entry value, so every stored entry keeps the reference that was sent to the gateway.
- Add the
mailerIncrementIdtag to the confirmation email, so the customer receives the same reference.
That way the same number identifies the transaction in the gateway, in your entries, and in the customer’s inbox.