Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

repeat subform for each data item with javascript


Level 2

Hello to all.

In my form I have a subform with the "repeat subform for each data item" property because it has a direct binding to a section of my xsd that can be present n times. in this subform there is a textarea with floating fields that have direct binding with the fields of the xsd inserted in this repeatable section. For one of these floating fields, however, I can not have direct binding but I have to set a javascript side logic for which I only have to display the "name" and "last name" fields or the "social reason" field based on their presence in each of the n sections of my xsd. Do you have any practical tips? Because I'm having serious difficulties. I tried to use a loop for, cycling for the n sections in my xsd and going to read, for each of these sections, the above 3 fields (name, surname and social name) but does not work because the loop for is repeated double, because of the presence of the "repeat subform for each data item" property. Help me please ...







in this example you will have two textarea with inside:

for the first NOMINATIVE_ALTRO_RIC = name + last name;

for the second NOMINATIVE_ALTRO_RIC = social name;

0 Replies