Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Binding XML to Adobe Live Cycle - Nested Subform Repeat

Avatar

Level 1

I have a nested repeating subform. The nested subform  is repeating more than what it is supposed to do. Any suggestions appreciated.

Here is an example to explain it better -

For User1, form needs to render 3 instances of subform; For User 2, form needs to render 1 instance of subform. But 4 instances of nested subform is displayed for User 1 & User 2.

<test>

  <user id="1">

    <name>User1</name>

    <child>User Child 1</child>

    <child>User Child 2</child>

    <child>User Child 3</child>

  </user>

  <user id="2">

    <name>User2</name>

    <child>User Child 1</child>

  </user

</test>

Thank You.

1 Reply

Avatar

Level 9

How are you showing the subforms or making the instances of the subform? Are you using a setInstance() or addInstance() ?

Thanks,

Bibhu.