Expand my Community achievements bar.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Former Community Member

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!

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Former Community Member

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.