Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Coral UI 'Select' not allowing to remove all values

Riju-Mahna
Level 3
Level 3

I have a custom fragment template with custom metadata schema added for business use. One field is a multi value dropdown.

I can add values to it but when I remove all values and save it, it does not save the changes. (The last saved value(s) is saved again)

Basically, its forcing me to keep at least 1 value saved there. The schema is like:

<_x0031_480609690955
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="My Dropdown"
multiple="true"
name="./jcr:content/metadata/mydropdown"
renderReadOnly="true">
<granite:data
  jcr:primaryType="nt:unstructured"
  metaType="dropdown"/>
<items jcr:primaryType="nt:unstructured">
  <_x0031_480609702507
  jcr:primaryType="nt:unstructured"
  text="Value 1"
  value="value_1"/>
  <_x0031_480609703314
  jcr:primaryType="nt:unstructured"
  text="Value 2"
  value="value_2"/>
  <_x0031_480609706365
  jcr:primaryType="nt:unstructured"
  text="Value 3"
  value="value_3"/>
</items>

Do I need to add some additional attributes here ?

0 Replies