multifield Text field is not retaining the value

gargsahil099

19-09-2017

HI team,

I am using the multifield textfield  which is not working properly as for first time i click on edit and enter the values it display that on web page and when i again click on edit button it get wiped on page as well as dialog but still existing in CRXDE in array format. I am using AEM 6.0. Can someone please suggest.

Accepted Solutions (1)

Accepted Solutions (1)

gargsahil099

19-09-2017

HI All,

Thanks for help. Just got to know we have one mandatory property in multi-field components for all the cq:widget is key. If we did not declare the key property in all the cq:widget then we will not be able to retain the value for same.

Below is updated screenshot.

answer.PNG

Answers (8)

Answers (8)

manishtomar69

21-01-2019

Hi,

I am dynamically populating drop-down which is inside the multi field, but rest of the items inside multi field retaining their value except drop-down.

Could anyone help on that.

manisha594391

19-02-2018

Hi Sahil,

I am also facing the sam issue, the values are not getting saved in dialog, although they are persisted in crxde.

Could you send the sample code.

1422200_pastedImage_0.png

smacdonald2008

19-09-2017

Most of the community effort now into Multi-Field is for Touch UI and later AEM versions (ie - 6.3) such as: Scott's Digital Community: Creating an AEM HTML Template Language 6.3 component that uses a Multifie...

However, this uses ACS-Commons. See if the approach we talk about here works in Classic MF.

As you can see from this article - the data is stored as JSON data.

gargsahil099

19-09-2017

Hi Ratna,

Even i checked this as well. This also seems to be little complex component . As i am new in AEM so not able to grasp much. Can you please help me to look above screenshot why the dialog is getting empty after i click on edit and there is nothing get stored in title property in CRX but is saved in abc property in CRX.

gargsahil099

19-09-2017

Hi Manju,

I don't see these links will be helpful for me as the issue with me is

Below are snapshots for first time i click on edit component button and enter the values.

2.PNG

Below is the structure in dialog

-title (xtype = multifield & name=./title)

     -fieldConfig (xtype = multifieldpanel)

          - items (cq:WidgetCollection)

                   - text display(xtype = textfield & name =./abc

3.PNG)

After i click on edit button dialog is empty and in CRXDE as well the ,,, for title(last line) and values are saved with abc(1st line)

1.PNG5.PNG

Manjunath_DJ

19-09-2017