These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Numeric Field script

redeyedjack
Registered: Jan 10 2009
Posts: 2
Answered

Hello all,
Can anyone tell me if there is a way to place a numeric field in a form so that it will render a sequential
number everytime a new form is filled out?
Here is my situation: I'm trying to set up an interactive Work Order form so my Techs can fill them out
on their laptops and then press the email button and send it to the office. But each Work Order must have a unique number for future reference. I am a newbie so please forgive me if I plead ignorance
in regards to writing scripts.

My Product Information:
LiveCycle Designer, Windows
JennD
Registered: Jan 8 2009
Posts: 18
I have the same issue and did a lot of research. The answer to your question, from everything I read and have tried, is No. The only way, so far, that I have been able to "autonumber" is to link it to a database with an autonumber field. This has it's own set of challenges and frustrations. Unless you have a numbering system in place, maybe you can make up a number that will always be unique, something like tech initials-date(MMDDYY)-time(HHMM(24Hour)). The number would look something like this JD-011209-1337. I know this one is kind of long, but it's just an example, maybe it'll spark an idea.

Jenn D.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Unless the notebooks are connected to a central database to track the number, no.

George Kaiser

HankS
Registered: Apr 17 2009
Posts: 15
Does anyone know if this is possible with Acro forms
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Yes, many ways.

Without a data connection and not using the Web, you can use the Acrobat JavaScript global object, [url=http://www.acumentraining.com/acumenjournal.php]Acumen Journal[/url] August 2004 has an explanation and [url=http://www.acumentraining.com/resources.php]Accumen Resources[/url] global.zip file has a working example.

You can create a database that holds the count and then access the database each time the PDF is opened and increment the count. The database can be on a network server or on a web server.

You should consider when the counter will update. Whether it is when the PDF is opened or submitted.

George Kaiser