Multifield xtype OOB Provides two property to set Minimum & Maximum Limits.
Configuration:
<config jcr:primaryType="cq:Widget" fieldLabel="Configuration" minItems="1" maxItems="1" name="./config" xtype="multifield"> <fieldConfig jcr:primaryType="nt:unstructured" allowBlank="{Boolean}false" fieldLabel="Value:" xtype="textfield"/> </config>