Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Save pdf with new instances of subform

Avatar

Level 2

I have a pdf saved as Dynamic XML Forms with typical button to add instances of a subform.

The form works fine, but the problem is not show the added instances after save and open.

Can someone tell me how to solve it?

Attached a example.

https://www.hightail.com/download/elNJblRwY3k5eFZjR05Vag

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

there are two things you need to change in your form, to make it work.

1. For the subform "dades_linies_suport" activate the option "repreat item for each data item" in the binding palette.

2. Change the script in the "ShowMoreBtn" into:

_dades_linies_suport.addInstance(true);

That's all!

Hope this helps.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

there are two things you need to change in your form, to make it work.

1. For the subform "dades_linies_suport" activate the option "repreat item for each data item" in the binding palette.

2. Change the script in the "ShowMoreBtn" into:

_dades_linies_suport.addInstance(true);

That's all!

Hope this helps.

Avatar

Level 2

Thank you very mach, radzmar. You're absolutely right.

Attached an example that i have found and works fine. Hope that helps someone else.

http://forums.adobe.com/servlet/JiveServlet/download/2321848-23807/Dummy%20Form%20rev%2012.pdf

Thank you for your assistance!