Text field: Add sequential numbers after text
Hello,
I am working on a form using Acrobat XI Pro. I need to populate one of my fields (called Order) with something similar to an invoice number, where I have several letters followed by a number that would need to increment by 1 when clicking on a button:
VS001
VS002
VS003...
I already have a button that increments said number; what I would like to know is how to precede it with (unchanging) letters.
The code for that button is:
this.getField("Order").value = Number(this.getField("Orden").value) + 1;
Right now I am using two adjacent fields where one holds the letters and the other has the sequencing numbers, but I encountered the following problem:
- Numbers don't show any leading zeros (it shows as VS4 instead of VS004)
I'd like a more elegant solution where only one field would be needed, if possible.
How could this be achieved?
Thank you kindly.
