cancel
Showing results for 
Search instead for 
Did you mean: 

Reset page number after conditional break

leif_almgren
Participant
0 Kudos

Hi all, I have what seems to be a very basic question but have not been able to find an answer in these forums or in other Adobe forums.

I have a conditional page break, based on when a certain field changes it's value. This is done as a server-side FormScript. The problem I have is that the page numbering should be reset to 1 after such a break. How can I achieve this?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I figured it out thanks any way

If anyone looking for a solution for the same issue

he solution is as follows

create 3 numeric fields in the header of the table

total

counter 1

counter 2

the total is to count the number of pages of each document

in initialization event

total = total + 1 ;

the counter 1 is to make the counter of the pages from 0 to total (invisible)

in calculate event

if ( counter 1 < total ) then

counter 1 = counter 1 + 1 .

elseif( counter 1 >= total ) then

counter 1 = 1

counter 2 to show the page number of the document

in layout ready

counter 2 = 1

in calculate event

counter 2 = counter 1 + 1

Note: this is the logic with little modification create the code

Regards

Former Member
0 Kudos

Hello!

If you can't do it with page number, then try to use not page numbering function, but simple variable. And reset it after page-break.

Regards,

Petr Perstnev

Former Member
0 Kudos

Do anyone have any solution or script for this problem?

help please

Former Member
0 Kudos

Hi there,

Did you find a solution for this problem?

I have the same problem, please tell me how did you solve it?\

regards.

Sami