コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

multicompositefield tab with select box

Avatar

Level 2

Hi,

This is an edited post (which had made earlier). 

Into an existing dialog (with multi Tabs) I have added a new tab as part of an enhancement.

The below code shows a part of the "multicompositefield" which have in the new Tab.

......................................................................
<fieldConfigs jcr:primaryType="cq:WidgetCollection" >             <media-type                     jcr:primaryType="cq:Widget"                     fieldLabel="Type"                     name="mytype"                     type="select"                     width="{Long}360"                     options = "/etc/acs-commons/lists/types/_jcr_content.list.json"                     xtype="selection"/>                              <media-path                     jcr:primaryType="cq:Widget"                     fieldLabel="Path"                     allowBlank="{Boolean}false"                     name="myurl"                     rootPath="/content/scaffold/acmelists"                     width="{Long}360"                     xtype="pathfield">             </media-path> </fieldConfigs>
......................................................................
......................................................................
    

The new tab is saving values as expected. But when i re-open this dialog, the values which I entered is not is not reflecting in the select box. But the select box is shrinking but i can see the value is selected in the select box.

Help me with pointers for where I went wrong.

Thanks

1 受け入れられたソリューション

Avatar

正解者
Administrator

Hi

As mentioned by Praveen, please try "autoWidth" property.

Reference Link:- https://docs.adobe.com/docs/en/cq/5-5/widgets-api/index.html?class=CQ.form.CompositeField

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

元の投稿で解決策を見る

2 返信

Avatar

Level 10

Can you try to use autoWidth propertywith true as value for select field

Avatar

正解者
Administrator

Hi

As mentioned by Praveen, please try "autoWidth" property.

Reference Link:- https://docs.adobe.com/docs/en/cq/5-5/widgets-api/index.html?class=CQ.form.CompositeField

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni