2

I am using AEM 6.1 and using the multifield provided by the acs aem commons version 2.2 bundle. I want to limit the number of multifield that I can configure. I have gone through the documentation here but nothing seems to be working. Any ideas?

Anjali Shyamsundar
  • 527
  • 1
  • 5
  • 14
user972418
  • 817
  • 3
  • 25
  • 58

2 Answers2

9

So just found out it works by adding a maxItems property on the multifield node. Earlier I was trying to use that property on multifieldpanel node.

user972418
  • 817
  • 3
  • 25
  • 58
4

By minItems="1" maxItems="1" you can set the maximum and minimum number of items.

ruchika jain
  • 160
  • 11