Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Nested multifield not working after upgarding to AEM 6.5.15

Avatar

Level 4

Hi All ,

 

We tried upgrading AEM from 6.5.8 to 6.5.15. After upgrade , the nested Multifield inside content fragment not able to save values in respective JSON format  ({"x":"x","y":"y","z":"z"}) instead saving in string array. [x,y] Because of that CFM values are blank .

 

Multifield js referred.

 

https://jimfrenette.com/aem/content-fragments/composite-multifield/

 

Tried also this ,still facing the same issue.

 

http://experience-aem.blogspot.com/2022/05/aem-6512-content-fragment-editor-composite-multifield-vis... 

 

Anyone else facing this similar issue.

 

Thank you in advance.

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Harishv31Recommended approach from Adobe for achieving a Nested Multifield is to implement a Nested Content Fragment.

  • Add a Content Reference Multifield in the first content fragment model.
  • Create a 2nd content fragment model and again add a multifield of required type there.
  • Reference the content fragments of second type from the first type

1st Content Fragment with Author Multifield (Fragment Reference)

Screenshot 2023-08-10 at 2.03.25 PM.png2nd Content Fragment with Country Multifield (Fragment Reference)Screenshot 2023-08-10 at 2.02.15 PM.png

View solution in original post

3 Replies

Avatar

Community Advisor

@Harishv31 

 

I am assuming that nested multifield is a customization.

 

If yes, Adobe ticket cannot be raised. You would need to investigate and fix it.

 

In case, you have customized any OOTB js library. Please take the latest file, and append your customization to it.


Aanchal Sikka

Avatar

Correct answer by
Community Advisor

Hi @Harishv31Recommended approach from Adobe for achieving a Nested Multifield is to implement a Nested Content Fragment.

  • Add a Content Reference Multifield in the first content fragment model.
  • Create a 2nd content fragment model and again add a multifield of required type there.
  • Reference the content fragments of second type from the first type

1st Content Fragment with Author Multifield (Fragment Reference)

Screenshot 2023-08-10 at 2.03.25 PM.png2nd Content Fragment with Country Multifield (Fragment Reference)Screenshot 2023-08-10 at 2.02.15 PM.png

Avatar

Level 5

Assuming it's an existing system, probably changing your implementation globally is not viable. As a recommendation for all future cfm models follow best practices from Adobe, and for this one probably you have to understand the customization done and refactor to make it work in the upgraded env.