repeat subforms for each data item

Avatar

Avatar

utente2

Avatar

utente2

utente2

01-08-2020

Hello,

I would like to ask a question about the "Repeat Subform for each data item" option present in the Aem Forms Designer in Object-> Binding. If I connect the element I want to repeat to the data of the XMl file through the "Data binding" field and select "Repeat Subform for each data item" the result I see in the preview is correct but it gives me a warning like "The maximum repeat value for this subform is set to a higher value than the data connection" if the number of connected data is equal to 1. Is it possible to use the option whether the number of data is > 1 or equal to 1? I have tried with different values also on "Min count"and "Max count" but the warning remains.

View Entire Topic

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

03-08-2020

The sample XML:

<root>
<repeatsection>
<repeatline>
<fieldx>content</fieldx>
</repeatline>
<repeatline>
<fieldx>content</fieldx>
</repeatline>
</repeatsection>
</root>

 

Then the design, a subform for the section and one for the lines repeating and a field

kprokopi_0-1596441783238.png

Set the repeat to min 1 - no other setting required

kprokopi_1-1596441893290.png

and your field

kprokopi_2-1596441971125.png

Not sure where you see this warning - is this a triangle in Designer? Try this approach and tell me if you still get that particular message...