Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

can we bind two xml values to one form field.

Avatar

Level 2

I am working with Form where we have a repeatable subform  inside that one form field(Text field) should appear with Two Xml node values dynamically.

ex:

xml:

<Name>

<FirstName>surya</FirstName>

<LastName>Varma</LastName>

</Name>

<Name>

<FirstName>santosh</FirstName>

<LastName>Varma</LastName>

</Name>

Form Field:

subform1
Name<First Name><Last Name>
subform2
Name<First Name><Last Name>

where subform 2 will create dynamically w.r.to XML data when we have repeated <Name> tags  

we can implement a script to show the data by using concatenation of two fields for subform 1, But when the subform repeats second time the same script will run again and gives same values as given for 1st subform.

I need  subform 1 contain - Surya varma

            subform 2 contain - Santosh Varma

any help?

0 Replies