Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Dynamic form elements not saved using addInstance()

Avatar

Former Community Member

HI!

Maybe you could help in following problem - I need to create  dynamic subforms, so user can add subforms or remove subforms in HCM P&F! I have created form in LiveCycle Designer 8.0, added two buttons, I can run my form in portal, and when Add button is clicked, new subform is created, but when I want to Check and send form, all newly added subforms dissappears! Maybe you can suggest any solution!

Thanks in advance!

JavaScript on click button:

Subform1.Subform2.instanceManager.addInstance(1);

( I already tried xfa.form.remerge(), but it does not helped to save newly added subforms;

Subform1 is flowed and Subform2 is positioned)

1 Reply

Avatar

Former Community Member

Are you saving and reopening th eform or is it when you do the submit and the form is still open.

Paul