• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1514
  • Last Modified:

Adobe Acrobat - Auto Increment Field On Opening Document

I do not not know if this is possible or not, but this is what I would like to accomplish.

I would like a field on an Acrobat form to automatically increment each time the document is opened, like a document serial number. This form would not be linked to any other document or external database.

  • 2
1 Solution

I don't think there is a Acrobat feature that will allow this in form fields. You will need Javascript to do this for you. Unfortunately my java is not good enough to help you here.

One thing you need to consider in your approach is that for a self contained numbering to work you need to scenarios to apply:

1. The user needs to have more than Reader 7 as Reader 7 does not save data in forms, for Reader 8 you need to enable the document to save data in form. You will need to do this after increment so the next number is saved, but before the user enters custom data other wise you end up with pre filled documents from previous users, best do this via java script if possible.

2.You must retain the integrity of the document, its location and save history so you get consistent numbering and no accidental over-write. Given that users may not follow your logic this could result in an impossible ambition.

hope this has given you some ideas.

Forced accept.

EE Admin
I am in need of the javascript for a Purchase Order Number Field to have an auto incrementing number.  The help that I have found on the web tells me to add an action in the page properties when the page opens.  That's great and all, but when I select the action "Run a JavaScript", the "Add..." Button is grayed out and I cannot add anything.  Any help here would be greatly appreciated.
Dear alleyda

you best open a question of your own in the Acrobat zone. Select 'Ask a question' from the options on the right and follow the on screen instructions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now