AEM 6.5 Content Fragments not saving data in a multi-select dropdown enumeration type | Community
Skip to main content
New Participant
May 31, 2021 3:48 AM UTC
Solved

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

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.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Jun 1, 2021 3:05 PM UTC

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

5 replies

arunpatidar
New Participant
Jun 1, 2021 7:51 PM UTC

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.

Translate
Arun Patidar
New Participant
Jun 2, 2021 12:18 AM UTC

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. 

Translate
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Jun 1, 2021 3:05 PM UTC

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

Translate
New Participant
Jun 2, 2021 12:21 AM UTC
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.
Translate