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
BedrockMission!

Learn more

View all

Sign in to view all badges

Add an Instance automatically at the top of Next Page

carlj28427183
Level 1
Level 1

Hello,

I am working on a dynamic fillable PDF form.

I want the user to add as many instances so to have the name (and other information) from all his directors.

I need the new instance to automatically go to the top of the Next Page.

How should I go about that?

Thank you in advance to any help/advice anyone can give

2 Replies
radzmar
Level 10
Level 10

Hi,

this can be done with a contitional break.

Assuming you have table named "Table" with a header row named "Header" and a repeatable row named "Row".

Select the Row and add the following contitional break under the Pagination palette.

Language: FormCalc

If:

Row[-1].index ne $.index

Break: before

At: Top of next page

Leader: Header

Trailer: (none)

931121_pastedImage_0.png

SI_MSD7
Level 6
Level 6

I saw this and was curious to try your solution for future use.

I added a standard "Add" button with script:

Table._Row.addInstance(1);

- After the button is initially clicked, it adds a new row to the table.

- When clicked again, it adds an additional row (Row) to the table as well as a new Header row, the table appears on the 2nd page, and the first page is blank.

- When clicked a 3rd time, it adds an additional row to table (table is now on page 3), the first page is blank, and the second page has nothing but a header row.

Is this the correct/intended behavior?

table_screenshot.png