You will have to add a unique form field to each page of each document and then add a custom calculation script to each form field.
event.value = "Page " + this.pageNum + " of " + this.numPages + " Pages"
Thanks. I changed this to event.value = this.pageNum + " of " + this.numPages because I don't need "Page" or "Pages".
It's showing 1 of 2 on both pages instead of 1 of 2 on page 1 and 2 of 2 on page 2?
Don't use the same name for both fields.
Thanks Bernd. All the field names with this script are different.
1 person found this helpful
Replace this.pageNum with (event.target.page+1) and add a doc-level script with this code: