Skip to main content
9374 Total posts
How to restrict the number of items added in a dialog which has a multifield?

Current code is as below in my dialog.xml;                             <field1                                    jcr:primaryType="cq:Widget"                                    name="./Field1"                                    id="field1"                                    fieldLabel="Field1"                                    xtype="multifield">                                  <fieldConfig                                                jcr:primaryType="cq:Widget"                                                xtype="compoundfield">                                         <items                                                   jcr:primaryType="cq:WidgetCollection">                                                   <subField1                                                          jcr:primaryType="cq:Widget"                                                          fieldLabel="subField1"                                                          name="./subField1"