How to limit nested multifield in aem | Community
Skip to main content
Level 4
February 25, 2022
Solved

How to limit nested multifield in aem

  • February 25, 2022
  • 1 reply
  • 1296 views

Hi All, 

I have created nested multifield dialog. And I want to allow only 5 fields for outer multifield and only 3 fields for inner multifield . I have googled it but I got results for multifield not for nested . Can anyone help me with this ??

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shubham_borole

@tessa_learner1 

I have not done this. But have to tried this approach in nested multiffield? https://blogs.perficient.com/2018/10/26/simple-multifield-max-item-validation-for-aem-6-4/

 
If you try adding validation=multifield-max-5 to the parent field and validation=child1-multifield-max-3 in the dialog and validate accordingly in the js Does that have any issue?
We may have to update the js file according to the multifield dialog structure and then validate?

 

Also visit https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multi-field-validation/td-p/369733 which have other useful links.

1 reply

Shubham_borole
Community Advisor
Shubham_boroleCommunity AdvisorAccepted solution
Community Advisor
February 25, 2022

@tessa_learner1 

I have not done this. But have to tried this approach in nested multiffield? https://blogs.perficient.com/2018/10/26/simple-multifield-max-item-validation-for-aem-6-4/

 
If you try adding validation=multifield-max-5 to the parent field and validation=child1-multifield-max-3 in the dialog and validate accordingly in the js Does that have any issue?
We may have to update the js file according to the multifield dialog structure and then validate?

 

Also visit https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multi-field-validation/td-p/369733 which have other useful links.