Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Tag ID xtype multifield issue in AEM 6.2

Avatar

Level 3

We have multifield tag as below.

|- MultiField (ootb multifield )

   |-fieldConfig - xtype : multifieldpanel

      |- field A (xtype:textfield example textfield)

      |- field B (xtype:pathfield example pathfield)

      |- field C (xtype:tags example tags field)

  

Where tag field is not a mandatory field but when a tagfield doesn't contain any values all the pre entered values are getting disappeared from the dialog.

  <navitems

                        jcr:primaryType="cq:Widget"

                        fieldLabel="Navigation Links"

                        name="./navitems"

                        orderable="{Boolean}true"

                        xtype="multifield">

                        <fieldConfig

                            jcr:primaryType="cq:Widget"

                            xtype="multifieldpanel">

                            <items jcr:primaryType="cq:WidgetCollection">

                                <linktitle

                                    jcr:primaryType="cq:Widget"

                                    allowBlank="false"

                                    fieldLabel="Link Title"

                                    key="linktitle"

                                    width="400"

                                    xtype="textfield"/>

                                <linkurl

                                    jcr:primaryType="cq:Widget"

                                    fieldLabel="Public Page URL"

                                    key="linkurl"

                                    rootPath="/content"

                                    suffix=".html"

                                    width="400"

                                    xtype="pathfield"/>

                                <privatelinkurl

                                    jcr:primaryType="cq:Widget"

                                    fieldLabel="Private Page URL"

                                    key="privatelinkurl"

                                    rootPath="/content"

                                    suffix=".html"

                                    width="400"

                                    xtype="pathfield"/>

                                <tagid

                                    jcr:primaryType="cq:Widget"

                                    fieldLabel="eService Visibility Tag"

                                    key="eserviceRole"

                                    tagsBasePath="/etc/tags"

                                    width="400"

                                    xtype="tags"/>

                            </items>

                        </fieldConfig>

                    </navitems>

ex: |- field A1  "Some text"

      |- field B1 "Some path"

      |- field C1 ""

  

  |- field A2  "Some text"

      |- field B2 "Some path"

      |- field C2 ""

  

   On Save it's saving in CRX after reloading Dialog for edit field A2,field B2 and field C2 are disappearing from dialog.

This is occuring in AEM 6.2  and in AEM 6.0 this was working fine, does anyone came across this kind of issue.

Please suggest any workaround if present.

2 Replies

Avatar

Level 10

IN AEM 6.2 - its recommended to use Granite API ( granite/ui/components/foundation/form/multifield) -- Scott's Digital Community: Creating an AEM 6.2 HTML Template Language component that uses a Multi-Fi...

Avatar

Level 8

Try changing the store from JSON to NODE and make sure your property name for tags is ./cq:tags

Add this to your dialog field

acs-commons-nested="NODE_STORE"