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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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
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
Views
Replies
Total Likes
Hi @erickteowarang,
Thanks for the inputs. Yes it does use Granite UI Select which supports multiple in general, but not in the context of Content Fragments.
(On a high level check from backend, could see that select resource is included/handled for specific set of possible properties alone)
Views
Replies
Total Likes
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.
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies