Expand my Community achievements bar.

Reset the page number

Avatar

Former Community Member
Hi,



I am trying to reset the page number by opening a new master page with

in the object-pagination the 'Start At' field value 1 but it doesn't

seem to work if it isn't the first page of the document.

Is there any other way to do this? Can I also reset the

total-page-counter?



Many thanks,



Gert
3 Replies

Avatar

Former Community Member
There does not seem to be a way to do this at this time. I talked to the Product Manager and had them open an enhancement request for this.

Avatar

Level 10
I'm using following script in the layout:ready event to change the page numbers in my forms.



exsample: Page 13 in my form shows page number 1.



this.rawValue = xfa.layout.sheet(this) - 11

Avatar

Former Community Member
Hi Gert,

You can check the page number if it is bigger than your desired value you can reset the variable value back by script as:



//After page 2, it starts from scratch

if(xfa.layout.page(this) > 2)

this.rawValue = xfa.layout.page(this) - 2;

else

this.rawValue = xfa.layout.page(this);