Solved

Adobe Acrobat - Auto Increment Field On Opening Document

Posted on 2007-11-14
5
1,372 Views
Last Modified: 2010-05-19
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.

THanks
0
Comment
Question by:MichaelKHuber
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
captain earned 250 total points
ID: 20293039
Hi

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.

capt.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20560956
Forced accept.

Computer101
EE Admin
0
 

Expert Comment

by:alleyda
ID: 22026765
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.
0
 
LVL 30

Expert Comment

by:captain
ID: 22026824
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.

capt.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PDF Weirdness 15 51
Adobe Acrobat Pro DC & Document Cloud 2 105
TXT to PDF help needed 26 94
Merging PDFs with VB.NET 10 40
Acrobat’s JavaScript is a great tool to extend the application, or to automate recurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts,…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now