This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 4
Generate a random number as an order number?
Started 8 years ago by antyky | 2 posts |
-
Hello,
Is there a way to generate a random number, like 5 to 8 digits, as an order number for sending notification on the email subject line?
Thanks
AntPosted 8 years ago # -
Unfortunately, there is no way to generate random number. MachForm only generate unique incremental numbers.
If you would like to customize the email subject, a simple workaround is by adding some random numbers as the prefix and use the {entry_no} template variable.For example, use this within your subject:
Order #84713{entry_no}
That would generate something like these:
Order #847131
Order #847132
Order #847133
Order #847134
Order #847135
and so on.MachForm Founder
Posted 8 years ago #
Reply
You must log in to post.