Nested multifield not allowing to add more items | Community
Skip to main content
Level 2
October 31, 2024

Nested multifield not allowing to add more items

  • October 31, 2024
  • 4 replies
  • 1190 views

Hi there,

I have a nested multifield and I am using coral 3 .

I am able to add as much fields as I need. But sometimes after adding a number of fields ( It happens with a not precise number of adding) and saving,  when I come back to edit my multifield and I try to add another section I am not able to see all fields in the ui.

 

 

 

Here the xml code of the dialog you can see in the image above:

 

<interestsAndFiltersSection
jcr:primaryType="nt:unstructured"
jcr:title="Items"
granite:class="pir-foundation-granite-ui-multi-field-validation-max-size"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
fieldLabel="Interests And Filters Section"
margin="{Boolean}true"
composite="{Boolean}true">
<field
sling:resourceType="granite/ui/components/coral/foundation/container"
jcr:primaryType="nt:unstructured"
name="./profileFilterInterests">
<items jcr:primaryType="nt:unstructured">
<containerFieldSet
jcr:primaryType="nt:unstructured"
jcr:title="Interest Section"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<interestsCategoryTitle
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Interests Category Title"
name="./interestsTitle">

</interestsCategoryTitle>

<interestsFilterPlaceholder
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Interests Filter Placeholder"
name="./interestsFilterPlaceholder"/>

<fieldValueInterests
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
fieldLabel="Select the right tag"
fieldDescription="Insert the exact value received from CIAM"
name="./fieldValueInterests"
rootPath="/content/cq:tags"
metaType="tags"
multiple="false"
showEmptyInReadOnly="true"
valueType="String"/>

<labelType
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Label Type"
fieldDescription="Select the mode option"
name="./labelType">
<items jcr:primaryType="nt:unstructured">
<local
jcr:primaryType="nt:unstructured"
text="Local Label"
value="local"/>
<english
jcr:primaryType="nt:unstructured"
text="English Label"
value="english"/>
</items>
</labelType>
<interests
jcr:primaryType="nt:unstructured"
jcr:title="Items"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
fieldLabel="Interests"
margin="{Boolean}true"
composite="{Boolean}true">
<field
sling:resourceType="granite/ui/components/coral/foundation/container"
jcr:primaryType="nt:unstructured"
name="./interests">
<items jcr:primaryType="nt:unstructured">


<interestCode
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
fieldLabel="Select the right interest CODE tag"
fieldDescription="Insert the exact value received from CIAM"
name="./interestCode"
rootPath="/content/cq:tags"
metaType="tags"
multiple="false"
showEmptyInReadOnly="true"
valueType="String"/>

<interestsFilterLocalLabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Local Label"
name="./interestsFilterLocalLabel"/>
<interestsFilterEnglishLabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="English Label"
name="./interestsFilterEnglishLabel"/>
</items>
</field>
</interests>
</items>
</containerFieldSet>
</items>
</field>
</interestsAndFiltersSection>

 

I already applied the fix you suggested in this ticket : https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/complex-nested-multifield-not-allowing-to-add-more-items/m-p/406328

 

Thank you,

Sarah

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

4 replies

MukeshYadav_
Community Advisor
Community Advisor
October 31, 2024

Hi @sarahbo2 ,

There is a service as Apache Sling Main Servlet, where it ask for number of calls per request which is 1000 by default. I changed it to 10000 and it resolved this issue. 

Did you try this fix?

Thanks

SarahBo2Author
Level 2
November 8, 2024

Yes. But it did not work. It is possible that the problem is that the multifield is within the page properties?
Thanks,

Sarah

konstantyn_diachenko
Community Advisor
Community Advisor
November 1, 2024

Hi @sarahbo2 , have you checked console logs?

 

I would suggest to open a browser DevTools and try to reproduce this issue. Once you reproduce it again, check console logs and network tab with requests. Most likely you will see some console logs and/or failed requests. 

 

Collect this info and provide them here. It can help us to troubleshoot this issue together.

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
GabrielMircea
Level 2
November 4, 2024

I doubt the console.log will provide much information, i'd rather check the AEM error logs as this  is less likely to be a frontend client side issue.

PRATHYUSHA_VP
Community Advisor
Community Advisor
November 4, 2024

Hi @sarahbo2 

 

Can you remove the granite:class and check any logic being written for the same

 

I tried reproducing the same with your dialog.xml , it seems working fine after removing the granite:class

 

Can you please try and update if not working

 

Hope this helps

 

Thanks

kautuk_sahni
Community Manager
Community Manager
November 5, 2024

@sarahbo2 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
SarahBo2Author
Level 2
November 6, 2024

Hi, actually the answers did not solved my issue. I also added the log but I didn't have any help.

 Thank you,
Sarah