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:
<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>
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
Ratna is correct - use ACS-Commons and build your Multifield that way. Here is another example where it stores the values:
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies