Multifield is adding an extra field in the next text field

ravi_shankerj14

19-03-2020

I have two multifields. Both are text fields but while adding values to the second text field it is taking an additional , as a first field of the  second multifield. is there any property i missing ?

Please find the structure of textfield under multifield.

Screenshot (224).png

 Please find the storage of properties under  jcr:content

crxlite.png

Accepted Solutions (1)

Accepted Solutions (1)

Suraj_Kamdi

MVP

19-03-2020

@ravi_shankerj14 

Please use the following cq:dialog structure for multifield.

<nav
    sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
    fieldLabel="Links"
    jcr:primaryType="nt:unstructured"
    composite="{Boolean}true">
    <field sling:resourceType="granite/ui/components/coral/foundation/container"
            jcr:primaryType="nt:unstructured" 
            name="./multifieldProperties">
        <items jcr:primaryType="nt:unstructured">
            <linkText
                sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                fieldLabel="Link Text"
                jcr:primaryType="nt:unstructured"
                name="./linkText" />
        </items>
    </field>
</nav>

Answers (0)