Expandir minha barra de realizações na Comunidade.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.

SOLUCIONADO

Duplicate pages button does not generate new page

Avatar

Level 2

I am almost done with the Form from Heck!

 

I have a page that needs to be duplicated when a button is clicked.

Ideally, when the button is clicked, a copy of the page will be created, placed at the end of the pdf, with new empty fields ready to be filled in.

I used this previous post as a guide and was able to make the button.

 

However, it places the duplicate subform on the same page, and not at the top of a new one.

I'm sure I just have something, somewhere, set incorrectly.

 

The page is a landscape master page (Page2). It is set as Flowed, Allow Page Breaks, Pagination is OnPage "Page2" and Binding is set for Repeat Subform for Each Data Item.

 

There is a subform on this page (CurrentandPending_subform) which contains all the elements I'd like to have on the duplicate page. This includes other subforms and a dynamic table and other elements.

The settings on this subform are: Flowed, Top to Bottom, Allow Page Breaks; Pagination On Page, "Page2"; Binding Repeat Subform for Each Data Item.

 

The script on the button is: _CurrentandPending_subform.addInstance(true);

Is the problem just the script? Can it be tweaked to open a new page?

 

Screenshot 2021-03-04 163158.jpg

 

The table has an "addInstance" to create additional rows, and that's working correctly.

Again, I'm not sure if I'm providing too much detail, or not enough.

I appreciate any help. Thank You

Tópicos

Os tópicos ajudam a categorizar o conteúdo da comunidade e aumentam sua capacidade de descobrir conteúdo relevante.

1 Solução aceita

Avatar

Resposta correta de
Level 10

Hi there,

 

so after reviewing your form, I managed to make this work.

The (CurrentandPending) page, will have {Pagination > Place} to be set as "Following Previous"

And the top most subform of that page (CurrentandPending_subform), will have {Pagination > Place} to be set as "Top of Page 'Page2'"

 

I hope this will help you.

Ver solução na publicação original

6 Respostas

Avatar

Level 10

Hi there,

 

I have a similar form that has 2 different master pages with landscape and portrait. I just tried out with "Top of Page (Page2)" (Page2 as landscape) and it works just fine...

I could take a look at it real quick if you wish, but it shouldn't be any more than this.

Avatar

Level 2
I was getting a blank page when I changed the pagination. I sent you a PM with a link to the latest version. Thanks

Avatar

Employee
Hi, the reason is that simply duplicating the instance uses the same pagination settings in use with the original. Changing those will not help because your original will be affected by that too. Send me your link as well and I see if I find a solution for that - this is comlicated and I have not done this like that before. No promises 🙂

Avatar

Resposta correta de
Level 10

Hi there,

 

so after reviewing your form, I managed to make this work.

The (CurrentandPending) page, will have {Pagination > Place} to be set as "Following Previous"

And the top most subform of that page (CurrentandPending_subform), will have {Pagination > Place} to be set as "Top of Page 'Page2'"

 

I hope this will help you.

Avatar

Administrator
@Magus069, Thank you for sharing the solution with AEM Community. Keep the wonderful work going. Good to see you back.


Kautuk Sahni

Avatar

Level 2
Yes! That did it!