Skip to content

Instantly share code, notes, and snippets.

@kuckmc01
Last active January 11, 2022 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuckmc01/8a0ca4953e4dd89ab4d050030b03bab0 to your computer and use it in GitHub Desktop.
Save kuckmc01/8a0ca4953e4dd89ab4d050030b03bab0 to your computer and use it in GitHub Desktop.
AEM 6.5 or AEMAACS Ready Nested Multifield
<outer
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="outer">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./outerName">
<items jcr:primaryType="nt:unstructured">
<text
jcr:primaryType="nt:unstructured"
fieldLabel="text"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
emptyText="text"
name="./text"/>
<inner
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="inner">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./innerName">
<items jcr:primaryType="nt:unstructured">
<innerText
jcr:primaryType="nt:unstructured"
fieldLabel="innerText"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
emptyText="innerText"
name="./innerText"/>
</items>
</field>
</inner>
</items>
</field>
</outer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment