Multifields disappears when re-edited | Community
Skip to main content
October 6, 2017
Solved

Multifields disappears when re-edited

  • October 6, 2017
  • 2 replies
  • 1667 views

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>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ratna_Kumar

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.

2 replies

Ratna_Kumar
Ratna_KumarAccepted solution
Level 10
October 6, 2017

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.

Level 2
November 17, 2023

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?

smacdonald2008
Level 10
October 6, 2017

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 Manager 6.3