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

zane303

06-03-2017

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!

Accepted Solutions (1)

Accepted Solutions (1)

zane303

07-03-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.

Answers (0)