Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to limit nested multifield in aem

Avatar

Level 4

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 ??

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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-... which have other useful links.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@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-... which have other useful links.