Help with combining fields and sequential numbering
Hello,
I need some help with a document I'm working on. I'm very much a novice when it comes to javascript and I can't seem to figure this one out.
Essentially I need to combine three fields and then add sequential numbering to the end so that each print would be increase numerically by 1.
Users would enter values into field#1, field#2 and field#3.
For example, field #1 would be two characters (AB), field #2 would be a sequence of six numbers (such as 050418), field #3 would be some other characters (CD).
At the end of the string, I'm looking to add sequential numbering, starting at 0001 and increasing by 1 for each printout.
The final result would be something like this: AB050418CD0001
The next printouts would be AB050418CD0002, AB050418CD0003, AB050418CD0004, etc...
I would typically end up printing a couple thousand of these hence the four spaces for the numbers.
It just makes it look more consistent but I can live without the four spaces if it isn't possible.
Also, it doesn't need to save the numbering as next time the document is opened it would need to reset to 0001. Fields 1, 2, and 3 would be changed by the user the next time it is opened so resetting the numbering would be best.
Is this possible?
Thank you for your help!
