Use this as the custom calculation code of your page number fields:
event.value = "Page " + (event.target.page+1) + " of " + this.numPages;
Thanks for your reply.
I added your script and it worked on the first page, but as soon as I click my add page button the first pages numbers goes from "page 1 of 1" to "page 0'11 of 2". The second page, which I added via a template, then shows "page 1 of 1".
Any thougts on this?
I apprediate your help so far
Did you set the option to rename the fields on the spawned pages?
Well the I set up the template file with different fields to the master page, inserted it into the master page file and made the it a template via the document processing option.
Didnt ask me for that option?
On what step or how do I activate that option?
In your code that spawns the new page you have to specify the bRename
parameter as new. Otherwise you get multiple copies of a field with the
same name, and the page property can't be used.
Thanks very much Gilad, Ill see if I can apply this to my file!
Thank you again for your effort