Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

Reset the page number

Avatar

Not applicable
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

Level 10
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

Not applicable
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);