multifield Text field is not retaining the value | Community
Skip to main content
gargsahil099
Level 3
Sep 19, 2017 10:22 AM UTC
Solved

multifield Text field is not retaining the value

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
gargsahil099
gargsahil099Accepted solution
Level 3
Sep 19, 2017 5:47 PM UTC

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.

10 replies

New Participant
Jan 21, 2019 10:04 AM UTC

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.

Translate
manisha594391
Level 4
Feb 19, 2018 8:16 AM UTC

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.

Translate
gargsahil099
gargsahil099AuthorAccepted solution
Level 3
Sep 19, 2017 5:47 PM UTC

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.

Translate
smacdonald2008
Level 10
Sep 19, 2017 2:23 PM UTC
smacdonald2008
Level 10
Sep 19, 2017 2:18 PM UTC

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 Multifield

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.

Translate
gargsahil099
Level 3
Sep 19, 2017 1:38 PM UTC

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.

Translate
Ratna_Kumar
Level 10
Sep 19, 2017 12:31 PM UTC

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.

Translate
gargsahil099
Level 3
Sep 19, 2017 11:54 AM UTC

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.

Below is the structure in dialog

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

     -fieldConfig (xtype = multifieldpanel)

          - items (cq:WidgetCollection)

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

)

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)

Translate
sams16001423
Level 2
Sep 11, 2020 4:51 AM UTC

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 !

Translate