Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

multifield Text field is not retaining the value

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

10 Replies

Avatar

Level 2

Hi All,

 

I'm also facing the similar issue with multi-field in 6.4 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 first time entered values will be not available in the component & if i click ok it get wiped on page as well as said above i think its with acs commons. Any idea what it could be?

Can someone please suggest.

 

Thanks in advance !

Avatar

Level 4

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

Avatar

Level 10

Hi,

The links provided by Manju for Touch UI Multifield. As I can see that you have issue in Multifield in Classic UI.

Also, Please check this Classic UI article for Multifield: Adobe Experience Manager Help | Developing a custom Adobe Experience Manager Quiz Component

~Ratna.

Avatar

Level 4

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.

Avatar

Level 10

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.

Avatar

Correct answer by
Level 4

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

Avatar

Level 4

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

Avatar

Level 1

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.