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

Sequential Number Generator

1josha
Registered: Apr 24 2007
Posts: 18

Hi,

I am a beginner at form design and adobe in general. Please help.

I want to create a calculated field in a form i am designing that is a automatically generated sequential number. The number must never repeat.

Can it be done?

I was thinking it might be possible to call the "last open" time and/or date property of the form to generate the number.

Josh.

pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
Here are a couple of suggestions. One uses the Math.random() function and the other uses the date:

http://www.planetpdf.com/forumarchive/153031.asp

Carl Young
www.pdfconference.com

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].

1josha
Registered: Apr 24 2007
Posts: 18
Thanks.

I fiddled for a while and worked out how to get it to work using the date/time. The only problem I have is that I wanted to ensure a unique number so I included seconds. I think I selected the wrong event type or something because the field automatically updates every second as the time changes.

Any ideas?