Skip to main content
j-francoisp52431786
Participating Frequently
March 4, 2016
Question

numbers counters

  • March 4, 2016
  • 1 reply
  • 944 views

Hello I have a simple question.

Does can insert numbers counters.

a form that gives each opening a new number.

Example: I open the PDF and it is noted: 00055. Then I make a further application, number 00056

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 4, 2016

Do you mean that the number will change each time you open the form? Yes, it can be done using a form field and a simple script.

j-francoisp52431786
Participating Frequently
March 4, 2016

yes every time and when we erases

You mean what by simple script...

try67
Community Expert
Community Expert
March 4, 2016

Let's say you have a text field called Counter. In Acrobat, go to Tools - JavaScript - Document JavaScripts and create a new item (call it "scripts"), with this code:

var f = this.getField("Counter");

f.value = util.printf("%05d", Number(f.valueAsString)+1);

Click OK and save the file. Each time you open if from that point on, the value of Counter will increment by one.