Skip to main content
Participant
September 3, 2025
Answered

Would like to have sequential number field that will count number of copies

  • September 3, 2025
  • 1 reply
  • 228 views

I have to often print a series of labels that include information such as a roll count, 1 of 50, 2 of 50, etc.

 

How can I add a single form on a single page in Acrobat that will increase sequentially per the copies printed?

Correct answer PDF Automation Station

Assume the field's name is Count.  Create a non-printable button and add the following mouse-up action script:

this.resetForm(["Count"]);
var count=app.response("How many copies?");
if(!isNaN(count))
{
for(var i=1;i<=count;i++)
{
this.getField("Count").value=i+ " of " + count;
this.print(false);
}
}

 

1 reply

PDF Automation Station
Community Expert
Community Expert
September 3, 2025

Do you mean "How can I add a single field.."

Participant
September 3, 2025

Yes. "Field." Apolgies

PDF Automation Station
Community Expert
Community Expert
September 3, 2025

Assume the field's name is Count.  Create a non-printable button and add the following mouse-up action script:

this.resetForm(["Count"]);
var count=app.response("How many copies?");
if(!isNaN(count))
{
for(var i=1;i<=count;i++)
{
this.getField("Count").value=i+ " of " + count;
this.print(false);
}
}