Expand my Community achievements bar.

SOLVED

How to limit nested multifield in aem

Avatar

Level 5

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.