Q: Create Invoice Number
Hi, am planning to send invoices to the client using bit form. How can I automatically create an invoice number?
Alternative, Is it possible to that bit form count the number of submissions?. e.g. If i submit the form for the first time, it counts as 1, and for the second time, it counts as 2 etc?, coz am thinking, i can also use the number of submissions as invoice number
You can use the submission count (Entry ID) as the invoice number, or make it more unique by combining it with date/time or a random string.
Methods:
1. Simple Invoice Number
- Add a hidden text field.
- Use Smart Tag: "Invoice-"{Entry Id} → e.g., Invoice-1, Invoice-2
2. With Date & Entry ID
- Add a hidden text field and a hidden advanced date/time field.
- Use Smart Tags: {advance date/time fields} + {Entry Id} → e.g., 2025071417524296001
3. With Random String
- Add a hidden text field.
- Use Smart Tags: {Random String} + {Entry Id} → e.g., 6874ac67e14d21
All these are set up using:
Form Settings → Conditional Logic → Action Effect: Only on Form Submit →Field Actions → (...)Smart Tags
Supporting documentation:
- Smart Tags: https://bit-form.com/wp-docs/others/smart-tags/
- Advanced Date/Time Field: https://bit-form.com/wp-docs/form-fields/advanced-date-time/
- Conditional Logic: https://bit-form.com/wp-docs/apply-conditional-logic-using-bitform/