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.
Please find the storage of properties under jcr:content
Solved! Go to Solution.
Views
Replies
Total Likes
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>
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>
Hi Suraj,
Thanks for the update.
But have a requirement to store multifield values as string[] under jcr:content node.
Views
Replies
Total Likes
Views
Likes
Replies