Sequential numbering in adobe form

Asked By 0 points N/A Posted on -
qa-featured

I have created a PDF file with active form fields for typing in information and I want it to assign auto numbering to it.

For example, if you start with 0001, it would advance the number, that is, for this case, 0002 every time you open the file.

Is there any option in Adobe Acrobat for such thing?

Any help would be much appreciated.

 

 
 
 
 
 
 
SHARE
Best Answer by Mabel Gia
Answered By 10 points N/A #122493

Sequential numbering in adobe form

qa-featured

For sequential numbering of your pdf pages please find out “Numbering and section option”  from the fly-out of the pages pallet. There you will be able to set your automatic page number. For this go to Type then Insert Special Character then Marker and finally Current Page Number on all master pages by the text box with an automatic page number character.

Best Answer
Best Answer
Answered By 0 points N/A #122494

Sequential numbering in adobe form

qa-featured

Hi,

You can use Python programming language code that you have to paste into the pre-logic script code section of the field calculator that the field will be equal to the defined code function. This enables you to generate numbers automatically in a sequence. To be able to do this,

  1. First you need to create a new short integer field.
  2. Next change to set the parser to Python code input.
  3. Next click on the check box that allows you to show code block.
  4. In the code block, paste the code below into the pre-logic script code:

rec=0
def autoIncrement():
global rec
pStart = 1 #adjust start value, if req'd
pInterval = 1 #adjust interval value, if req'd
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec

In the field name set the following into the smaller box that's below the pre-logic script code:,

Field_Name:
autoIncrement()
Click on OK to set the code into run time process.

  1. Alternatively i can show you another code that you can use in the same process above which will give you the same result ;

rec=0 

def autoIncrement(): 

 global rec 

 pStart = 1

pInterval = 1

if (rec == 0):

rec = pStart

else:

rec += pInterval

return rec 

Hope that helps.
 

 

Related Questions