drop down is not retaining value in composite multifield | Community
Skip to main content
Level 2
Feb 22, 2018 8:20 PM UTC

drop down is not retaining value in composite multifield

I am using granite/ui/components/coral/foundation/form/select inside coral multifield.

If I select any value in drop-down and submit the dialog, value is stored in jcr:content  but if I open the dialog again drop-down does not populate stored value.

I am working on AEM 6.3 SP1 Cumulative package 2, coral ui 3 and for multifield I am using acs-commons-3.14

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

10 replies

Abhishekty
Level 4
Aug 29, 2019 4:38 PM UTC

Hi, I have same case I am using drop down in multifield but after authoring and saving drop-down value has changed as first one.

(after saving drop-down not return selected one.)

I need to use acs-common genericlist,

can you please suggest me ?

<testDropDown

   jcr:primaryType="nt:unstructured"

   fieldLabel="Test Heading"

   sling:resourceType="granite/ui/components/coral/foundation/form/select"

   name="./dropDwonTest">

   <datasource

   jcr:primaryType="nt:unstructured"

   sling:resourceType="acs-commons/components/utilities/genericlist/datasource"

   path="/etc/acs-commons/lists/test/testIndex"/>

   </testDropDown>

Translate
hpathanAuthor
Level 2
Feb 27, 2018 9:04 AM UTC

It is working fine on my environment, but it is storing multi-field value is in node structure.  I want to store multi-field value in json format for that we are using acs-common.

Translate
smacdonald2008
Level 10
Feb 22, 2018 8:25 PM UTC

When you use granite/coral multifield - you do not need to use ACS-Commons.

Translate
smacdonald2008
Level 10
Feb 22, 2018 9:15 PM UTC

See this article - we have a Select field that does hold a value:

Creating a Granite/Coral 6.3 Multifield HTL component for Adobe Experience Manager

Translate
smacdonald2008
Level 10
Feb 22, 2018 9:43 PM UTC

Just tested the package in this article and the Select field in the MF is holding the value when you close and re-open the dialog. See the SIZE field. As mentioned in this article - when using the Granite/MF type - you do not need to use ACS-Commons like you do when using the Granite Multifield.

Translate