Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Multifields disappears when re-edited

Avatar

Level 1

Hi,

I'm having an issue with multifields that were edited and populated with values disappear when when I go back and re-edit them.  Is there a fix for this issue?  Here is my xml for the multifield tab:

  <data2 jcr:primaryType="nt:unstructured" jcr:title="SOCIAL MEDIA2" sling:resourceType="granite/ui/components/foundation/section">

  <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" margin="{Boolean}false"/>

  <items jcr:primaryType="nt:unstructured">

  <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <fieldset jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/fieldset">

  <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>

  <items jcr:primaryType="nt:unstructured">

  <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <help-text jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/heading" text="Click 'Add Field' to add a new card" level="4" />

  <cards jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/multifield">

  <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/fieldset" name="./socialblock">

  <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" method="absolute"/>

  <items jcr:primaryType="nt:unstructured">

  <heading3 jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/heading" text="Social Media Block" level="3"/>

  <socialicon cq:showOnCreate="{Boolean}true" jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/select" fieldLabel="Social Icon" multiple="{Boolean}false" required="true" emptyText="- Select Icon -" name="./socialicon">

  <items jcr:primaryType="nt:unstructured">

  <one jcr:primaryType="nt:unstructured" text="Facebook" value="fa-facebook-square"/>

  <two jcr:primaryType="nt:unstructured" text="Twitter" value="fa-twitter"/>

  <three jcr:primaryType="nt:unstructured" text="Instagram" value="fa-instagram"/>

  <four jcr:primaryType="nt:unstructured" text="YouTube" value="fa-youtube-play"/>

  <five jcr:primaryType="nt:unstructured" text="Linkedin" value="fa-linkedin-square"/>

  <six jcr:primaryType="nt:unstructured" text="Google+" value="fa-google-plus-square"/>

  </items>

  </socialicon>

  <labelurl jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/textfield" required="{Boolean}true" fieldLabel="External URL" name="./socialurl"/>

  <target4 cq:showOnCreate="{Boolean}true" jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/select" fieldLabel="Target" required="true" ordered="true" multiple="{Boolean}false" emptyText="- Select -" name="./socialtarget">

  <items jcr:primaryType="nt:unstructured">

  <one jcr:primaryType="nt:unstructured" text="Blank" value="_blank"/>

  <two jcr:primaryType="nt:unstructured" text="Self" value="_self"/>

  <three jcr:primaryType="nt:unstructured" text="Parent" value="_parent"/>

  <four jcr:primaryType="nt:unstructured" text="Top" value="_top"/>

  </items>

  </target4>

  </items>

  </field>

  </cards>

  </items>

  </column>

  </items>

  </fieldset>

  </items>

  </column>

  </items>

  </data2>

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

I see that you are using AEM 6.3 coral multifield and also : sling:resourceType="granite/ui/components/coral/foundation/form/multifield

Along with that please use ACS Commons package for Multi-field which is said in this article: Creating an AEM HTML Template Language 6.3 component that uses a Multifield

Also please see this article: AEM 6.3 : Coral 3 multifield component - Keys and Strokes

~Ratna.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi,

I see that you are using AEM 6.3 coral multifield and also : sling:resourceType="granite/ui/components/coral/foundation/form/multifield

Along with that please use ACS Commons package for Multi-field which is said in this article: Creating an AEM HTML Template Language 6.3 component that uses a Multifield

Also please see this article: AEM 6.3 : Coral 3 multifield component - Keys and Strokes

~Ratna.

Avatar

Level 2

Hi Ratna,

 

I'm facing same issue with the dialog field, but not able to open the ACS commomns package link. giving 404 for all.

Could you please share the valid link?

Avatar

Level 10

Ratna is correct - use ACS-Commons and build your Multifield that way. Here is another example where it stores the values:

Adobe Experience Manager Help | Creating a Repeating Data Set HTL Component for Adobe Experience Man...