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

Automatic numbering a document

wcollett
Registered: Nov 6 2009
Posts: 4
Answered

Can someone please help me. I've created a one page document in LiveCycle Designer 8.2 and what i'm trying to do is this:

Every time one of my employees opens the document, I want it to generate a new number?

Thanks,

Woodrow

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
This first script example gets the total number of pages in your form and assigns it to the rawValue property of a Text Field:

TextField1.rawValue = xfa.layout.pageCount();

This second script example calls the pageDown method of the host application (Acrobat) to move the form to the next page:

xfa.host.pageDown();

Your solution: layout:Ready

TextField 1.rawValue = xfa.host.numPages;
xfa.host.currentPage = xfa.host.numPages -1;

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

wcollett
Registered: Nov 6 2009
Posts: 4
Thanks for your help