Expand my Community achievements bar.

SOLVED

Issue with RTE field inside multifield in AEM 6.5 with SP 6.5.17

Avatar

Level 2

I am using an RTE inside the coral multifield dialog. Foundation.js is throwing this error "The field doesn't support FoundationField#setName" While trying to add a multifield. This is causing issue while saving the dialog. Values are not getting stored inside component nodes properly. I have added composite={Boolean}true property in the multifield. Still issue is happening. This issue is happening only with RTE inside multifield.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

@kautuk_sahni We have found that the issue was happening in the environment as the coral3 js code was overridden by custom code from another tenant and it is missing a validation method for the RTE field. We have added the missing method and resolved the issue.

View solution in original post

5 Replies

Avatar

Community Advisor

@salih_ep , can you share the dialog's xml, if possible or dialog node structure along with resourceType?

 

Avatar

Level 2
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tabs
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs"
maximized="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<tabitems
jcr:primaryType="nt:unstructured"
jcr:title="Items"
sling:resourceType="granite/ui/components/coral/foundation/container"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<multi
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
max-items="5">
<field
granite:class="cmp-teaser__editor-action"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./multifieldItems">
<items jcr:primaryType="nt:unstructured">
<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Title"
name="./title"
required="{Boolean}true"/>
<description
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"
fieldLabel="Description"
name="./description"
removeSingleParagraphContainer="{Boolean}true"
required="{Boolean}true"
useFixedInlineToolbar="{Boolean}true">
</description>
</items>
</field>
</multi>
</items>
</columns>
</items>
</columns>
</items>
</tabitems>
</items>
</tabs>
</items>
</content>

Same is working fine in local , issue is in another environment. But both have same versions of service pack.

Avatar

Administrator

@salih_ep Did you find the suggestion helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Correct answer by
Level 2

@kautuk_sahni We have found that the issue was happening in the environment as the coral3 js code was overridden by custom code from another tenant and it is missing a validation method for the RTE field. We have added the missing method and resolved the issue.