Issue with RTE field inside multifield in AEM 6.5 with SP 6.5.17 | Community
Skip to main content
Level 2
March 6, 2024
Solved

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

  • March 6, 2024
  • 3 replies
  • 1366 views

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.

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 salih_ep

@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.

3 replies

Umesh_Thakur
Community Advisor
Community Advisor
March 6, 2024

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

 

salih_epAuthor
Level 2
March 6, 2024
<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.
kautuk_sahni
Community Manager
Community Manager
March 7, 2024

@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
salih_epAuthorAccepted solution
Level 2
March 7, 2024

@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.