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.

Having issues with a repeating subform with a dynamic table.

Avatar

Former Community Member
I have a subform what has a table that can expand by using and add instance button. This part works fine. The difficulty is when I use a add instance button to create an additional instance of the subform, the add instance buttons for the tables do not work correctly.

Any assistance would be appreciated. I can e-mail the form if my explanation is not clear.



Thanks in advance.



Paul
1 Reply

Avatar

Former Community Member
If you still have a problem with this you can try the below code.



form1.page1.subform1[iSubFrmIndex.value].Table1.Row.instanceManager.addInstance(1)



where iSubFrmIndex should be a global variable. to create this goto file -> form properties --> open the variables tab and create the variable by clicking '+' button.



This variable has to be intialized on the subform initialize event as below.



iSubFrmIndex.value = form1.page1.subform1.index



This is a formcalc script.