Expand my Community achievements bar.

Subforms - adding instances

Avatar

Level 2

Hello,

On my form I have a "Claimant" section. When you click a button, you can add a new claimant.

On different button, various subforms are repeated as well as a subform in the "Claimant" section.

What I need this button to do is also have the subform that is repeated in the "Claimant" section also to repeat for the new claimant.

The script to add a new claimant is simply:

form1.Container.Claimant.instanceManager.addInstance(1);

The script on the other button is this:

addRemSub.instanceManager.insertInstance(0,1);

Container.ClaimSummary.instanceManager.insertInstance(0,1);

----Container.Claimant.InjuryStatus2.InjDiff.instanceManager.insertInstance(0,1)

Container.MCTable.instanceManager.insertInstance(0,1);

Container.FMRPTable.instanceManager.insertInstance(0,1);

Container.addRemSub.CommitteeDetails.instanceManager.insertInstance(0,1);

The line where I have inserted the ---- is the part that I also need when a new claimant is added.

Can anyone help?

Thanks in advance.

1 Reply