AEM 6.5 Content Fragments not saving data in a multi-select dropdown enumeration type | Community
Skip to main content
May 31, 2021
Solved

AEM 6.5 Content Fragments not saving data in a multi-select dropdown enumeration type

  • May 31, 2021
  • 2 replies
  • 4231 views

Hi community, 

I've created an enumeration type for a Content Fragment I made with the multiple option set to true. Unfortunately even though the UI appears fine and I am able to select multiple options, after I click save, nothing happens. 

The XML structure of the field:

<countries
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Countries"
metaType="enumeration"
multiple="{Boolean}true"
name="regions"
options="Australia, New Zealand, United Kingdom, United States, Canada"
renderReadOnly="false"
required="on"
showEmptyInReadOnly="true"
valueType="string[]">

 Am I doing something wrong or is the multi-select not currently supported in CFs?

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 Vijayalakshmi_S

Hi @erickteowarang,

Content Fragment Model Editor UI (as we navigate via Tools -> Assets -> Content Fragment Models) has no option to enable multiple options/set multiple -> true for Enumeration

Are you making this change directly in the dialog via CRXDE ?

Note : I checked in AEM 6.5.0

2 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
June 1, 2021

Hi @erickteowarang,

Content Fragment Model Editor UI (as we navigate via Tools -> Assets -> Content Fragment Models) has no option to enable multiple options/set multiple -> true for Enumeration

Are you making this change directly in the dialog via CRXDE ?

Note : I checked in AEM 6.5.0

June 2, 2021
HI @vijayalakshmi_s, yes I updated it directly in the code to test it. Our team does not use the Content Fragment Model Editor UI and have our own tool to generate the XML for our components. I noticed that the enumeration type was using the Granite UI for the Select, which had a multiple option but apparently it's unsupported.
arunpatidar
Community Advisor
Community Advisor
June 1, 2021

Hi,

I don't think so if multiple option is supported.

I tried with 

valueType="string[] 

and with

valueType="string

 It works only with single value though you can select multiplöe but only first values is getting stored.

Arun Patidar
June 2, 2021

Hey Arun,

 

Yeah I tried using valueType="string" as well but like you said, it only saves the first one which indicates that it's unsupported. 

 

Thanks for checking.