Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Nesting Multifileds in AEM 6.1

Avatar

Level 1

Hi There,

Am trying to nest 3 multifields in AEM 6.1 but the last one doesn't return the data, am not sure what am doing wrong here, can you guys help me.

<tab1
   jcr:primaryType="nt:unstructured"
   id="cq-dialog-checkbox-showhide-target_tab1"
   title="Property Quote Image"
   sling:resourceType="granite/ui/components/foundation/form/fieldset">
  <items jcr:primaryType="nt:unstructured">
  <icon xmlns:jcr="http://www.jcp.org/jcr/1.0"
   xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
   xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
   jcr:primaryType="nt:unstructured"
   fieldLabel="Icon"
   name="./icon1"
   sling:resourceType="dotcom/widgetsui/custom-iconpicker">
  <datasource jcr:primaryType="nt:unstructured"
   path="/etc/dotcom/lists/fontello-icons"
   sling:resourceType="acs-commons/components/utilities/genericlist/datasource"/>
  </icon>
  <name1
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textarea"
   fieldLabel="Name"
   key="name"
   width="250"
   rows="1"
   maxlength="180"
   fieldDescription="Limited to 80 characters (with spaces)"
   name="./name1"/>
  <note1
   jcr:primaryType="nt:unstructured"
   sling:resourceType="cq/gui/components/authoring/dialog/richtext"
   fieldLabel="Note"
   height="100"
   name="./note1"
   required="{Boolean}true"
   useFixedInlineToolbar="{Boolean}true">

   <!--Include Richtext Plugins-->
   <rtePlugins
   jcr:primaryType="nt:unstructured"
   sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextSettings/rtePlugins"/>

   <!--Include Richtext Settings-->
   <uiSettings
   jcr:primaryType="nt:unstructured"
   sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextUISettings/uiSettings"/>

  </note1>
  <heading1
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textarea"
   fieldLabel="Heading"
   maxlength="80"
   required="{Boolean}false"
   name="./heading1"/>

  <subHeading1
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textarea"
   fieldLabel="Sub Heading"
   maxlength="300"
   fieldDescription="300 characters"
   required="{Boolean}false"
   name="./subHeading1"/>
  <includeContent
   id="cq-dialog-checkbox-showhide_includeContent1"
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/checkbox"
   text="Include content"
   value="true"
   name="./includeContent1"/>

  <includeContent1
   jcr:primaryType="nt:unstructured"
   id="cq-dialog-checkbox-showhide-target_includeContent1"
   title="Content"
   sling:resourceType="granite/ui/components/foundation/form/fieldset">
  <items jcr:primaryType="nt:unstructured">

  <columns
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/container">
  <items jcr:primaryType="nt:unstructured">
  <definitions
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/multifield"
   fieldLabel="content"
   eaem-nested=""
   class="foundation-layout-util-maximized-alt">
   <!-- fieldLabel="Territory Links" -->

   <field
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/fieldset"
   name="./content1">
  <layout
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
   method="absolute"/>
  <items jcr:primaryType="nt:unstructured">

  <contentHeading1 jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldLabel="Heading"
   fieldDescription="Text to display on link"
   required="{Boolean}false"
   name="./contentHeading1"/>
  <definitions
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/multifield"
   fieldLabel="splits"
   eaem-nested=""
   class="foundation-layout-util-maximized-alt">
   <!-- fieldLabel="Territory Links" -->

   <field
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/fieldset"
   name="./splits1">
  <layout
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
   method="absolute"/>
  <items jcr:primaryType="nt:unstructured">

  <splitsName jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldLabel="Name"
   fieldDescription="Text to display on link"
   required="{Boolean}false"
   name="./splitsName1"/>
  <definitions
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/multifield"
   fieldLabel="sources"
   eaem-nested=""
   class="foundation-layout-util-maximized-alt">
   <!-- fieldLabel="Territory Links" -->

   <field
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/fieldset"
   name="./sources1">
  <layout
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
   method="absolute"/>
  <items jcr:primaryType="nt:unstructured">

  <sourcesName jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldLabel="Name"
   fieldDescription="Text to display on link"
   required="{Boolean}false"
   name="./sourcesName1"/>
  <sourcesNotice jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldLabel="Notice"
   fieldDescription="Text to display on link"
   required="{Boolean}false"
   name="./sourcesNotice1"/>
  <sourcesContent
   jcr:primaryType="nt:unstructured"
   sling:resourceType="cq/gui/components/authoring/dialog/richtext"
   fieldLabel="Content"
   height="100"
   name="./sourcesContent1"
   required="{Boolean}true"
   useFixedInlineToolbar="{Boolean}true">

   <!--Include Richtext Plugins-->
   <rtePlugins
   jcr:primaryType="nt:unstructured"
   sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextSettings/rtePlugins"/>

   <!--Include Richtext Settings-->
   <uiSettings
   jcr:primaryType="nt:unstructured"
   sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextUISettings/uiSettings"/>

  </sourcesContent>
  <sourcesButton jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldLabel="Button"
   fieldDescription="Text to display on link"
   required="{Boolean}false"
   name="./sourcesButton1"/>
  <sourcesForm jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldLabel="Form"
   fieldDescription="Text to display on link"
   required="{Boolean}false"
   name="./sourcesForm1"/>



  </items>
  </field>
  </definitions>



  </items>
  </field>
  </definitions>


  </items>
  </field>
  </definitions>
  </items>
  </columns>


  </items>
  </includeContent1>



  </items>
  </tab1>

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 10

Could you share/attach the entire js and dialog.xml? It would be better to debug it that ways.