Dynamic rows in a table issue - also relates to having elements with the same element name | Community
Skip to main content
March 7, 2017
Solved

Dynamic rows in a table issue - also relates to having elements with the same element name

  • March 7, 2017
  • 1 reply
  • 938 views

In my adaptive form I have a table with dynamic rows. (AEM Forms 6.2 SP1)

Each row has two text fields, I want to bind the field to my XDP. But when I do so and submit I only get one value:

                <SupplierDetails>
                  <SupplierName>fdsg</SupplierName>
                </SupplierDetails>

I expect the following:

                <SupplierDetails>
                  <SupplierName>fdsg</SupplierName>
                </SupplierDetails>
                <SupplierDetails>
                  <SupplierName>xv</SupplierName>
                </SupplierDetails>
                <SupplierDetails>
                  <SupplierName>sg</SupplierName>
                </SupplierDetails>

Has anyone else encountered this issue?

Any help on this would be great.

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

I have figured out this issue and so for anyone else with the same issue.

In Designer for your XDP make sure you have a subform as the entry for the table row, and make this subform "Repeat Subform for Each Data Item" I found the subform could not be within another subform for this option to be visible.

So after this you can assign the row to the subform and the elements to the elements within the subform and hopefully it'll work.

1 reply

Accepted solution
March 7, 2017

I have figured out this issue and so for anyone else with the same issue.

In Designer for your XDP make sure you have a subform as the entry for the table row, and make this subform "Repeat Subform for Each Data Item" I found the subform could not be within another subform for this option to be visible.

So after this you can assign the row to the subform and the elements to the elements within the subform and hopefully it'll work.