Highlighted

Multifield not working with multiple tabs and nested multifield in AEM 6.1

Avatar

Avatar

anelem1760873

Avatar

anelem1760873

anelem1760873

16-01-2019

Hi Guys,

Attached is my cq:dialog xml. I tried almost every possible way to make it work but still no luck.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
          xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
          jcr:primaryType="nt:unstructured"
          jcr:title="Wealth Investment Wizard"
          sling:resourceType="cq/gui/components/authoring/dialog"
          helpPath="https://docs.adobe.com/docs/en/aem/6-1/author/page-authoring/editing-content.html"
          dialogWidth="60rem"
          dialogHeight="30rem">
    <content
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/foundation/container">
        <layout
                    jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/foundation/layouts/tabs"
                type="nav"/>
                <items jcr:primaryType="nt:unstructured">


            <tab_1
                            jcr:primaryType="nt:unstructured"
                    jcr:title="TAB 1"
                    id="tab_1"
                    sling:resourceType="granite/ui/components/foundation/section">
                <layout
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                        margin="{Boolean}false"/>
                        <items jcr:primaryType="nt:unstructured">
                            <column
                                    jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/foundation/container">
                                <items jcr:primaryType="nt:unstructured">

                                                        <active_1
                                                                        jcr:primaryType="nt:unstructured"
                                                                sling:resourceType="granite/ui/components/foundation/form/checkbox"
                                                                name="./active1"
                                                                id="cq-dialog-checkbox-showhide_tab1"
                                                                text="Active"
                                                                value="true"/>
                                                        <tab1
                                                                        jcr:primaryType="nt:unstructured"
                                                                id="cq-dialog-checkbox-showhide-target_tab1"
                                                                title="Wealth Investment Wizard"
                                                                sling:resourceType="granite/ui/components/foundation/form/fieldset">
                                                            <items jcr:primaryType="nt:unstructured">
                                                                <name1
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/textarea"
                                                                        fieldLabel="Name"
                                                                        key="name"
                                                                        width="250"
                                                                        rows="1"
                                                                        maxlength="180"
                                                                        fieldDescription="Limited to 80 characters (with spaces)"
                                                                        name="./name1"/>
                                                                <note1
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/textarea"
                                                                        fieldLabel="Note"
                                                                        maxlength="300"
                                                                        fieldDescription="300 characters"
                                                                        required="{Boolean}false"
                                                                        name="./note1"/>

                                                                <icon1 xmlns:jcr="http://www.jcp.org/jcr/1.0"
                                                                       xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
                                                                       xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
                                                                       jcr:primaryType="nt:unstructured"
                                                                       fieldLabel="Icon"
                                                                       name="./icon1"
                                                                       sling:resourceType="dotcom/widgetsui/custom-iconpicker">
                                                                    <datasource jcr:primaryType="nt:unstructured"
                                                                                path="/etc/dotcom/lists/fontello-icons"
                                                                                sling:resourceType="acs-commons/components/utilities/genericlist/datasource"/>
                                                                </icon1>
                                                                <heading1
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/textarea"
                                                                        fieldLabel="Heading"
                                                                        key="heading"
                                                                        width="250"
                                                                        rows="1"
                                                                        maxlength="180"
                                                                        fieldDescription="Limited to 80 characters (with spaces)"
                                                                        name="./heading1"/>

                                                                <subHeading1
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/textarea"
                                                                        fieldLabel="Sub Heading"
                                                                        maxlength="300"
                                                                        width="250"
                                                                        fieldDescription="300 characters"
                                                                        required="{Boolean}false"
                                                                        name="./subHeading1"/>
                                                                <includeContent1
                                                                        id="cq-dialog-checkbox-showhide_includeContent1"
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/checkbox"
                                                                        text="Include content"
                                                                        value="true"
                                                                        name="./includeContent1"/>
                                                                <includeContentFieldSet1
                                                                        jcr:primaryType="nt:unstructured"
                                                                        id="cq-dialog-checkbox-showhide-target_includeContent1"
                                                                        title="Splits"
                                                                        sling:resourceType="granite/ui/components/foundation/form/fieldset">
                                                                    <items jcr:primaryType="nt:unstructured">

                                                                        <columns
                                                                                jcr:primaryType="nt:unstructured"
                                                                                sling:resourceType="granite/ui/components/foundation/container">
                                                                            <items jcr:primaryType="nt:unstructured">
                                                                                <contentHeading1 jcr:primaryType="nt:unstructured"
                                                                                                 sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                                 fieldLabel="Heading"
                                                                                                 fieldDescription="Text to display on link"
                                                                                                 required="{Boolean}false"
                                                                                                 name="./contentHeading1"/>
                                                                                <definitions
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/multifield"
                                                                                        fieldLabel="Splits"
                                                                                        eaem-nested=""

                                                                                        class="foundation-layout-util-maximized-alt">
                                                                                    <!--  fieldLabel="Territory Links" -->

                                                                    <field
                                                                            jcr:primaryType="nt:unstructured"
                                                                            sling:resourceType="granite/ui/components/foundation/form/fieldset"
                                                                                            eaem-nested=""
                                                                                            name="./content1">
                                                                        <layout
                                                                                jcr:primaryType="nt:unstructured"
                                                                                sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                                                                                method="absolute"/>
                                                                        <items jcr:primaryType="nt:unstructured">
                                                                                            <splitsName1 jcr:primaryType="nt:unstructured"
                                                                                                         sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                                         fieldLabel="Name"
                                                                                                         fieldDescription="Text to display on link"
                                                                                                         required="{Boolean}false"
                                                                                                         name="./splitsName1"/>
                                                                            <definitions
                                                                                    jcr:primaryType="nt:unstructured"
                                                                                    sling:resourceType="granite/ui/components/foundation/form/multifield"
                                                                                    fieldLabel="sources"
                                                                                    eaem-nested=""
                                                                                    class="foundation-layout-util-maximized-alt">
                                                                                <!--  fieldLabel="Territory Links" -->

                                                                                <field
                                                                                        jcr:primaryType="nt:unstructured"
                                                                                        sling:resourceType="granite/ui/components/foundation/form/fieldset"
                                                                                        name="./sources1">
                                                                                    <layout
                                                                                            jcr:primaryType="nt:unstructured"
                                                                                            sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                                                                                            method="absolute"/>
                                                                                    <items jcr:primaryType="nt:unstructured">

                                                                                        <sourcesName jcr:primaryType="nt:unstructured"
                                                                                                     sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                                     fieldLabel="Name"
                                                                                                     fieldDescription="Text to display on link"
                                                                                                     required="{Boolean}false"
                                                                                                     name="./sourcesName1"/>
                                                                                        <sourcesNotice jcr:primaryType="nt:unstructured"
                                                                                                       sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                                       fieldLabel="Notice"
                                                                                                       fieldDescription="Text to display on link"
                                                                                                       required="{Boolean}false"
                                                                                                       name="./sourcesNotice1"/>
                                                                                        <sourcesContent
                                                                                                jcr:primaryType="nt:unstructured"
                                                                                                sling:resourceType="cq/gui/components/authoring/dialog/richtext"
                                                                                                fieldLabel="Content"
                                                                                                height="100"
                                                                                                name="./sourcesContent1"
                                                                                                required="{Boolean}true"
                                                                                                useFixedInlineToolbar="{Boolean}true">

                                                                                            <!--Include Richtext Plugins-->
                                                                                            <rtePlugins
                                                                                                    jcr:primaryType="nt:unstructured"
                                                                                                    sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextSettings/rtePlugins"/>

                                                                                            <!--Include Richtext Settings-->
                                                                                            <uiSettings
                                                                                                    jcr:primaryType="nt:unstructured"
                                                                                                    sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextUISettings/uiSettings"/>

                                                                                        </sourcesContent>
                                                                                        <sourcesButton jcr:primaryType="nt:unstructured"
                                                                                                       sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                                       fieldLabel="Button"
                                                                                                       fieldDescription="Text to display on link"
                                                                                                       required="{Boolean}false"
                                                                                                       name="./sourcesButton1"/>
                                                                                        <sourcesForm jcr:primaryType="nt:unstructured"
                                                                                                     sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                                     fieldLabel="Form"
                                                                                                     fieldDescription="Text to display on link"
                                                                                                     required="{Boolean}false"
                                                                                                     name="./sourcesForm1"/>



                                                                                    </items>
                                                                                </field>
                                                                            </definitions>

                                                                                            </items>
                                                                                        </field>
                                                                                </definitions>
                                                                            </items>
                                                                        </columns>
                                                                    </items>
                                                                </includeContentFieldSet1>



                                                            </items>
                                                        </tab1>
                                                    </items>
                                                </column>
                                            </items>
            </tab_1>
            <tab_2
                    jcr:primaryType="nt:unstructured"
                    jcr:title="TAB 2"
                    id="tab_2"
                    sling:resourceType="granite/ui/components/foundation/section">
                <layout
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                        margin="{Boolean}false"/>
                <items jcr:primaryType="nt:unstructured">
                    <column
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/foundation/container">
                        <items jcr:primaryType="nt:unstructured">

                            <active2
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/foundation/form/checkbox"
                                    name="./active2"
                                    id="cq-dialog-checkbox-showhide_tab2"
                                    text="Active"
                                    value="true"/>
                            <tab2
                                    jcr:primaryType="nt:unstructured"
                                    id="cq-dialog-checkbox-showhide-target_tab2"
                                    title="Wealth Investment Wizard"
                                    sling:resourceType="granite/ui/components/foundation/form/fieldset">
                                <items jcr:primaryType="nt:unstructured">
                                    <name2
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textarea"
                                            fieldLabel="Name"
                                            key="name"
                                            width="250"
                                            rows="1"
                                            maxlength="180"
                                            fieldDescription="Limited to 80 characters (with spaces)"
                                            name="./name2"/>
                                    <note2
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textarea"
                                            fieldLabel="Note"
                                            maxlength="300"
                                            fieldDescription="300 characters"
                                            required="{Boolean}false"
                                            name="./note2"/>

                                    <icon2 xmlns:jcr="http://www.jcp.org/jcr/1.0"
                                           xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
                                           xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
                                           jcr:primaryType="nt:unstructured"
                                           fieldLabel="Icon"
                                           name="./icon2"
                                           sling:resourceType="dotcom/widgetsui/custom-iconpicker">
                                        <datasource jcr:primaryType="nt:unstructured"
                                                    path="/etc/dotcom/lists/fontello-icons"
                                                    sling:resourceType="acs-commons/components/utilities/genericlist/datasource"/>
                                    </icon2>
                                    <heading2
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textarea"
                                            fieldLabel="Heading"
                                            key="heading"
                                            width="250"
                                            rows="1"
                                            maxlength="180"
                                            fieldDescription="Limited to 80 characters (with spaces)"
                                            name="./heading2"/>

                                    <subHeading2
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textarea"
                                            fieldLabel="Sub Heading"
                                            maxlength="300"
                                            width="250"
                                            fieldDescription="300 characters"
                                            required="{Boolean}false"
                                            name="./subHeading2"/>
                                    <includeContent2
                                            id="cq-dialog-checkbox-showhide_includeContent2"
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/checkbox"
                                            text="Include content"
                                            value="true"
                                            name="./includeContent2"/>
                                    <includeContentFieldSet2
                                            jcr:primaryType="nt:unstructured"
                                            id="cq-dialog-checkbox-showhide-target_includeContent2"
                                            title="Splits"
                                            sling:resourceType="granite/ui/components/foundation/form/fieldset">
                                        <items jcr:primaryType="nt:unstructured">
                                            <columns
                                                    jcr:primaryType="nt:unstructured"
                                                    sling:resourceType="granite/ui/components/foundation/container">
                                                <items jcr:primaryType="nt:unstructured">
                                                    <contentHeading2 jcr:primaryType="nt:unstructured"
                                                                     sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                     fieldLabel="Heading"
                                                                     fieldDescription="Text to display on link"
                                                                     required="{Boolean}false"
                                                                     name="./contentHeading2"/>
                                                    <definitions
                                                            jcr:primaryType="nt:unstructured"
                                                            sling:resourceType="granite/ui/components/foundation/form/multifield"
                                                            fieldLabel="Splits"
                                                            eaem-nested=""

                                                            class="foundation-layout-util-maximized-alt">
                                                        <!--  fieldLabel="Territory Links" -->

                                                        <field
                                                                jcr:primaryType="nt:unstructured"
                                                                sling:resourceType="granite/ui/components/foundation/form/fieldset"
                                                                eaem-nested=""
                                                                name="./content2">
                                                            <layout
                                                                    jcr:primaryType="nt:unstructured"
                                                                    sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                                                                    method="absolute"/>
                                                            <items jcr:primaryType="nt:unstructured">
                                                                <splitsName2 jcr:primaryType="nt:unstructured"
                                                                             sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                             fieldLabel="Name"
                                                                             fieldDescription="Text to display on link"
                                                                             required="{Boolean}false"
                                                                             name="./splitsName2"/>

                                                                <definitions
                                                                        jcr:primaryType="nt:unstructured"
                                                                        sling:resourceType="granite/ui/components/foundation/form/multifield"
                                                                        fieldLabel="sources"
                                                                        eaem-nested=""
                                                                        class="foundation-layout-util-maximized-alt">
                                                                    <!--  fieldLabel="Territory Links" -->

                                                                    <field
                                                                            jcr:primaryType="nt:unstructured"
                                                                            sling:resourceType="granite/ui/components/foundation/form/fieldset"
                                                                            name="./sources2">
                                                                        <layout
                                                                                jcr:primaryType="nt:unstructured"
                                                                                sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                                                                                method="absolute"/>
                                                                        <items jcr:primaryType="nt:unstructured">

                                                                            <sourcesName jcr:primaryType="nt:unstructured"
                                                                                         sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                         fieldLabel="Name"
                                                                                         fieldDescription="Text to display on link"
                                                                                         required="{Boolean}false"
                                                                                         name="./sourcesName2"/>
                                                                            <sourcesNotice jcr:primaryType="nt:unstructured"
                                                                                           sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                           fieldLabel="Notice"
                                                                                           fieldDescription="Text to display on link"
                                                                                           required="{Boolean}false"
                                                                                           name="./sourcesNotice2"/>
                                                                            <sourcesContent
                                                                                    jcr:primaryType="nt:unstructured"
                                                                                    sling:resourceType="cq/gui/components/authoring/dialog/richtext"
                                                                                    fieldLabel="Content"
                                                                                    height="100"
                                                                                    name="./sourcesContent2"
                                                                                    required="{Boolean}true"
                                                                                    useFixedInlineToolbar="{Boolean}true">

                                                                                <!--Include Richtext Plugins-->
                                                                                <rtePlugins
                                                                                        jcr:primaryType="nt:unstructured"
                                                                                        sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextSettings/rtePlugins"/>

                                                                                <!--Include Richtext Settings-->
                                                                                <uiSettings
                                                                                        jcr:primaryType="nt:unstructured"
                                                                                        sling:resourceSuperType="/apps/dotcom/components/content/common/dialog/touch/richTextUISettings/uiSettings"/>

                                                                            </sourcesContent>
                                                                            <sourcesButton jcr:primaryType="nt:unstructured"
                                                                                           sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                           fieldLabel="Button"
                                                                                           fieldDescription="Text to display on link"
                                                                                           required="{Boolean}false"
                                                                                           name="./sourcesButton2"/>
                                                                            <sourcesForm jcr:primaryType="nt:unstructured"
                                                                                         sling:resourceType="granite/ui/components/foundation/form/textfield"
                                                                                         fieldLabel="Form"
                                                                                         fieldDescription="Text to display on link"
                                                                                         required="{Boolean}false"
                                                                                         name="./sourcesForm2"/>



                                                                        </items>
                                                                    </field>
                                                                </definitions>


                                                            </items>
                                                        </field>
                                                    </definitions>
                                                </items>
                                            </columns>
                                        </items>
                                    </includeContentFieldSet2>
                                </items>
                            </tab2>
                                </items>
                            </column>
                        </items>
            </tab_2>


            <column
                    jcr:primaryType="nt:unstructured"
                    sling:hideResource="{Boolean}true"/>
        </items>
    </content>
</jcr:root>

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

16-01-2019

Take a look at this older community article on nested multifields in the Classic UI environment.

Adobe Experience Manager Help | Creating Adobe Experience Manager Components that use Nested Multifi...

For touch UI -- see this article - http://www.aemcq5tutorials.com/tutorials/create-touch-ui-nested-multifield-dialog-aem/

Avatar

Avatar

anelem1760873

Avatar

anelem1760873

anelem1760873

17-01-2019

They only have one Tab  on these articles, when you add a second tab the dialog doesn't show the fields.

Highlighted

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

17-01-2019

Follow http://www.aemcq5tutorials.com/tutorials/create-touch-ui-nested-multifield-dialog-aem/

It works without any issues. Modify it per your requirements

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"

    jcr:primaryType="nt:unstructured"

    jcr:title="User Menu"

    sling:resourceType="cq/gui/components/authoring/dialog">

    <content

        jcr:primaryType="nt:unstructured"

        sling:resourceType="granite/ui/components/foundation/container">

        <layout

            jcr:primaryType="nt:unstructured"

            sling:resourceType="granite/ui/components/foundation/layouts/tabs"

            type="nav"/>

        <items jcr:primaryType="nt:unstructured">

            <tabs

                jcr:primaryType="nt:unstructured"

                jcr:title="General"

                sling:resourceType="granite/ui/components/foundation/container">

                <items jcr:primaryType="nt:unstructured">

                    <usersubmenu

                        jcr:primaryType="nt:unstructured"

                        jcr:title="User Submenu"

                        sling:resourceType="granite/ui/components/foundation/section">

                        <layout

                            jcr:primaryType="nt:unstructured"

                            sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>

                        <items jcr:primaryType="nt:unstructured">

                            <tab

                                jcr:primaryType="nt:unstructured"

                                sling:resourceType="granite/ui/components/foundation/container">

                                <items jcr:primaryType="nt:unstructured">

                                    <usersubmenudetails

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="granite/ui/components/foundation/form/multifield"

                                        class="full-width"

                                        fieldDescription="Click 'Add field' to add a new User Submenu title and links"

                                        fieldLabel="User Submenu Items">

                                        <field

                                            jcr:primaryType="nt:unstructured"

                                            sling:resourceType="granite/ui/components/foundation/form/fieldset"

                                            acs-commons-nested=""

                                            name="./myUserSubmenu">

                                            <layout

                                                jcr:primaryType="nt:unstructured"

                                                sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

                                                method="absolute"/>

                                            <items jcr:primaryType="nt:unstructured">

                                                <column

                                                    jcr:primaryType="nt:unstructured"

                                                    sling:resourceType="granite/ui/components/foundation/container">

                                                    <items jcr:primaryType="nt:unstructured">

                                                        <title

                                                            jcr:primaryType="nt:unstructured"

                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                            fieldDescription="Enter User Submenu title"

                                                            fieldLabel="User Submenu Title"

                                                            name="./title"/>

                                                        <link

                                                            jcr:primaryType="nt:unstructured"

                                                            sling:resourceType="granite/ui/components/foundation/form/pathbrowser"

                                                            fieldDescription="Enter User Submenu Link"

                                                            fieldLabel="User Submenu Link"

                                                            name="./link"

                                                            rootPath="/content"/>

                                                        <flag

                                                            jcr:primaryType="nt:unstructured"

                                                            sling:resourceType="granite/ui/components/foundation/form/checkbox"

                                                            checked="{Boolean}false"

                                                            fieldDescription="Testing Flag for checkbox"

                                                            name="./flag"

                                                            text="Flag"

                                                            title="Checkbox Tooltip"/>

                                                    </items>

                                                </column>

                                            </items>

                                        </field>

                                    </usersubmenudetails>

                                </items>

                            </tab>

                        </items>

                    </usersubmenu>

                </items>

            </tabs>

            <tabs_1

                jcr:primaryType="nt:unstructured"

                jcr:title="General1"

                sling:resourceType="granite/ui/components/foundation/container">

                <items jcr:primaryType="nt:unstructured">

                    <usersubmenu

                        jcr:primaryType="nt:unstructured"

                        jcr:title="User Submenu1"

                        sling:resourceType="granite/ui/components/foundation/section">

                        <layout

                            jcr:primaryType="nt:unstructured"

                            sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>

                        <items jcr:primaryType="nt:unstructured">

                            <tab

                                jcr:primaryType="nt:unstructured"

                                sling:resourceType="granite/ui/components/foundation/container">

                                <items jcr:primaryType="nt:unstructured">

                                    <usersubmenudetails

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="granite/ui/components/foundation/form/multifield"

                                        class="full-width"

                                        fieldDescription="Click 'Add field' to add a new User Submenu title and links"

                                        fieldLabel="User Submenu Items1">

                                        <field

                                            jcr:primaryType="nt:unstructured"

                                            sling:resourceType="granite/ui/components/foundation/form/fieldset"

                                            acs-commons-nested=""

                                            name="./myUserSubmenu">

                                            <layout

                                                jcr:primaryType="nt:unstructured"

                                                sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

                                                method="absolute"/>

                                            <items jcr:primaryType="nt:unstructured">

                                                <column

                                                    jcr:primaryType="nt:unstructured"

                                                    sling:resourceType="granite/ui/components/foundation/container">

                                                    <items jcr:primaryType="nt:unstructured">

                                                        <title

                                                            jcr:primaryType="nt:unstructured"

                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                            fieldDescription="Enter User Submenu title"

                                                            fieldLabel="User Submenu Title1"

                                                            name="./title"/>

                                                        <link

                                                            jcr:primaryType="nt:unstructured"

                                                            sling:resourceType="granite/ui/components/foundation/form/pathbrowser"

                                                            fieldDescription="Enter User Submenu Link"

                                                            fieldLabel="User Submenu Link1"

                                                            name="./link"

                                                            rootPath="/content"/>

                                                        <flag

                                                            jcr:primaryType="nt:unstructured"

                                                            sling:resourceType="granite/ui/components/foundation/form/checkbox"

                                                            checked="{Boolean}false"

                                                            fieldDescription="Testing Flag for checkbox1"

                                                            name="./flag"

                                                            text="Flag"

                                                            title="Checkbox Tooltip1"/>

                                                    </items>

                                                </column>

                                            </items>

                                        </field>

                                    </usersubmenudetails>

                                </items>

                            </tab>

                        </items>

                    </usersubmenu>

                </items>

            </tabs_1>

        </items>

    </content>

</jcr:root>

1670786_pastedImage_2.png

1670787_pastedImage_3.png

Highlighted

Avatar

Avatar

anelem1760873

Avatar

anelem1760873

anelem1760873

17-01-2019

That's great  gauravb10066713 , but when you nested multifield, it fails

Look at screens below :

TAB1.PNG

TAB2.PNG

Here is the Dialog :

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"

   jcr:primaryType="nt:unstructured"

   jcr:title="User Menu"

   sling:resourceType="cq/gui/components/authoring/dialog">

  <content

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/tabs"

   type="nav"/>

  <items jcr:primaryType="nt:unstructured">

  <tabs

   jcr:primaryType="nt:unstructured"

   jcr:title="General"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <usersubmenu

   jcr:primaryType="nt:unstructured"

   jcr:title="User Submenu"

   sling:resourceType="granite/ui/components/foundation/section">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>

  <items jcr:primaryType="nt:unstructured">

  <tab

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <usersubmenudetails

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/multifield"

   class="full-width"

   fieldDescription="Click 'Add field' to add a new User Submenu title and links"

   fieldLabel="User Submenu Items">

  <field

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/fieldset"

   acs-commons-nested=""

   name="./myUserSubmenu">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

   method="absolute"/>

  <items jcr:primaryType="nt:unstructured">

  <column

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <title

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/textfield"

   fieldDescription="Enter User Submenu title"

   fieldLabel="User Submenu Title"

   name="./title"/>

  <link

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/pathbrowser"

   fieldDescription="Enter User Submenu Link"

   fieldLabel="User Submenu Link"

   name="./link"

   rootPath="/content"/>

  <flag

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/checkbox"

   checked="{Boolean}false"

   fieldDescription="Testing Flag for checkbox"

   name="./flag"

   text="Flag"

   title="Checkbox Tooltip"/>
  <usersubmenudetails1

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/multifield"

   class="full-width"

   fieldDescription="Click 'Add field' to add a new User Submenu title and links"

   fieldLabel="User Submenu Items">

  <field

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/fieldset"

   acs-commons-nested=""

   name="./myUserSubmenu1">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

   method="absolute"/>

  <items jcr:primaryType="nt:unstructured">

  <column

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <title

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/textfield"

   fieldDescription="Enter User Submenu title"

   fieldLabel="User Submenu Title"

   name="./title"/>





  </items>

  </column>

  </items>

  </field>

  </usersubmenudetails1>

  </items>

  </column>

  </items>

  </field>

  </usersubmenudetails>

  </items>

  </tab>

  </items>

  </usersubmenu>

  </items>

  </tabs>

  <tabs_1

   jcr:primaryType="nt:unstructured"

   jcr:title="General1"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <usersubmenu

   jcr:primaryType="nt:unstructured"

   jcr:title="User Submenu1"

   sling:resourceType="granite/ui/components/foundation/section">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>

  <items jcr:primaryType="nt:unstructured">

  <tab

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <usersubmenudetails

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/multifield"

   class="full-width"

   fieldDescription="Click 'Add field' to add a new User Submenu title and links"

   fieldLabel="User Submenu Items1">

  <field

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/fieldset"

   acs-commons-nested=""

   name="./myUserSubmenu">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

   method="absolute"/>

  <items jcr:primaryType="nt:unstructured">

  <column

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <title

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/textfield"

   fieldDescription="Enter User Submenu title"

   fieldLabel="User Submenu Title1"

   name="./title"/>

  <link

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/pathbrowser"

   fieldDescription="Enter User Submenu Link"

   fieldLabel="User Submenu Link1"

   name="./link"

   rootPath="/content"/>

  <flag

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/checkbox"

   checked="{Boolean}false"

   fieldDescription="Testing Flag for checkbox1"

   name="./flag"

   text="Flag"

   title="Checkbox Tooltip1"/>
  <usersubmenudetails2

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/multifield"

   class="full-width"

   fieldDescription="Click 'Add field' to add a new User Submenu title and links"

   fieldLabel="User Submenu Items">

  <field

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/fieldset"

   acs-commons-nested=""

   name="./myUserSubmenu2">

  <layout

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

   method="absolute"/>

  <items jcr:primaryType="nt:unstructured">

  <column

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/container">

  <items jcr:primaryType="nt:unstructured">

  <title2

   jcr:primaryType="nt:unstructured"

   sling:resourceType="granite/ui/components/foundation/form/textfield"

   fieldDescription="Enter User Submenu title"

   fieldLabel="User Submenu Title"

   name="./title2"/>





  </items>

  </column>

  </items>

  </field>

  </usersubmenudetails2>

  </items>

  </column>

  </items>

  </field>

  </usersubmenudetails>

  </items>

  </tab>

  </items>

  </usersubmenu>

  </items>

  </tabs_1>

  </items>

  </content>

</jcr:root>

Thanks

Highlighted

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

969

Correct Answer

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

969

Correct Answer

1.1K
kautuk_sahni
Community Manager

22-01-2019

This seems to be a bug. can you try on latest AEM?

Please report to Support for this.