Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

multifield max and min items validation.

Avatar

Level 1

I have created a multifield. I need to set minimum and maximum limit for the items to be allowed to be added there.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

@M_Manasi 

 

Please refer to the setup available on https://sourcedcode.com/blog/aem/aem-granite-ui-multifield-maximum-items-validation


Aanchal Sikka

Avatar

Community Advisor

Hi @M_Manasi 
Using multifield to configure a lot of data is not the best practice, AEM provides this feature but the whole point is to benefit the authoring experience. So if its a huge data, you may want to use an excel upload/groovy integration so that you can handle it via code. You may also use dashboards for this use case if it is feasible.
Please check it :  https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-set-min-max-item-in... 

Thanks.