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>
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
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.
조회 수
답글
좋아요 수
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.
조회 수
답글
좋아요 수
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?
조회 수
답글
좋아요 수
Ratna is correct - use ACS-Commons and build your Multifield that way. Here is another example where it stores the values:
조회 수
답글
좋아요 수
조회 수
Likes
답글
조회 수
Likes
답글
조회 수
Likes
답글