multifield max and min items validation. | Community
Skip to main content
January 15, 2024
Solved

multifield max and min items validation.

  • January 15, 2024
  • 2 replies
  • 1928 views

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

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 aanchal-sikka

@m_manasi 

 

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

2 replies

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
January 15, 2024
Raja_Reddy
Community Advisor
Community Advisor
January 15, 2024

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-multifield-aem-6-3/m-p/265853 

Thanks.