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

Sheet numbering

PDaigneault
Registered: Apr 16 2008
Posts: 4
Answered

I have a 4 page form. I added the "sheet n of m" field to my master page so that it shows up on all my pages. The problem is that it is not numbering the pages correctly. Page 1 says Sheet 0 of 4. Page 2 says Sheet 1 of 4 and so on.

PDaigneault

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Acrobat and LiveCycle Designer for compatibility with Acrobat, numbers pages starting with 0. So you need to change your script to increment the pageNum by 1.

Concat("Sheet ", doc.pageNum++, " of ", this.numPages)

George Kaiser

beachbumbali11
Registered: Mar 5 2008
Posts: 74
ok basicly what hes saying if you didnt get it is this open hierachy click on the current page item in the master page cause its not on the screen and add a +1 after (this) in the script window so when done it looks like this
this.rawValue = xfa.layout.page(this+1);
beachbumbali11
Registered: Mar 5 2008
Posts: 74
oops sorry the +1 goes after the this)
so it is xfa.layout.page(this)+1;