Expand my Community achievements bar.

SOLVED

Problems adding multiple instances of subform within subform

Avatar

Level 2

I would like the "Add attorney row..." button to add rows within the procSet subform for each click.  Right now the button adds only one instance.  I'd appreciate any help with the javascript.  I have tried various code samples, but I think maybe the problem is I need to add pages and then instances (I think), either way I can't get the code fully functioning beyond the one instance.  Thank you.



 

https://files.acrobat.com/a/preview/62a361cd-fc1e-49f2-be2a-50d7e18ea98f

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

replace the current script of the addAttorneyRow button with:


_attorneySet.addInstance(1);



And don't forget to allow page breaks for procSet :-)

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi,

replace the current script of the addAttorneyRow button with:


_attorneySet.addInstance(1);



And don't forget to allow page breaks for procSet :-)

Avatar

Level 2

Awesome, thanks so much.  I didn't expect less code!

Avatar

Level 2

Hi Radzmar.  I have one last question about my form for you.  Is there any way I could have the procSet subform data repeat on each physical new page?  I know I could use global data binding but I want some different "proceeding" information for each instance of the "Add New Proceeding" button.  The problem is if someone enters many different attorneySet subform instances for a particular procSet they lose track of which proceeding information it is tied to.   Thank you.