Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to Limit the Number of fields added in Multifield and give pop-up alert in AEM 6.4 Touch UI

Avatar

Level 5

Hi all,

 

I having the issue with limiting the number of fields in touch ui

In my scenario the multifield values are storing as JSON array and maximum number of fields added in the multifield is 6. If they try to add more than six field mean that time i want to give a pop-up alert message that shown like Maximum six field should be added.

I tried custom js but that is working well when the multifield values are stored by node by node like item0,item1,item2,etc.but in my case values storing as JSON Array

 

Kindly give me some solution to resolve this issue.

 

Screenshot (429).png

Screenshot (430).png

Screenshot (431).png

Screenshot (432).png

    

 

1 Accepted Solution

Avatar

Correct answer by
Level 4
6 Replies

Avatar

Level 5

@Nandheswara - Check this 

https://aemhints.com/2020/10/24/limit-multifield-aem65/

 

let me check for JSON data...

Avatar

Level 5

If any reference for JSON type values storing means share with me

Avatar

Level 5

@Nandheswara very old reference but have an look on JavaScript so u have a idea.

http://experience-aem.blogspot.com/2015/02/aem-6-sp2-touch-ui-multi-field-component.html

 

Avatar

Community Advisor

Hi @Nandheswara,

Can you check my blog for this:

https://allaembykiran.wordpress.com/2021/01/13/nested-multi-field/

 

Thanks,

Kiran Vedantam.

Avatar

Level 5

Hi @Nandheswara 

 

Check a similar issue in the below reference

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/maximum-limit-storage-for-... 

 

Hope this helps.

Avatar

Correct answer by
Level 4