How to set optgroup for AEM Adaptive Forms OOTB dropdownlist component? | Community
Skip to main content
fulongt37334138
Level 2
Apr 11, 2023 1:20 PM UTC
Solved

How to set optgroup for AEM Adaptive Forms OOTB dropdownlist component?

Hi Guys.

 

I don't know how to set optgroup for the AEM Adaptive Forms OOTB dropdownlist component, anyone know how?

 

Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Apr 12, 2023 4:39 AM UTC

@fulongt37334138 

I don't think it's supported with the OOTB options, but you can customize the component and leverage the methods such isKeyAnOptGroup[0] to identify an optgroup or option values.

 

[0] - https://developer.adobe.com/experience-manager/reference-materials/6-5/forms/javadocs/index.html?com/adobe/aemds/guide/common/GuideDropDownList.html

2 replies

Pulkit_Jain_
Pulkit_Jain_Accepted solution
Employee
Apr 12, 2023 4:39 AM UTC

@fulongt37334138 

I don't think it's supported with the OOTB options, but you can customize the component and leverage the methods such isKeyAnOptGroup[0] to identify an optgroup or option values.

 

[0] - https://developer.adobe.com/experience-manager/reference-materials/6-5/forms/javadocs/index.html?com/adobe/aemds/guide/common/GuideDropDownList.html

Translate
fulongt37334138
Level 2
Apr 14, 2023 3:45 AM UTC

Hello Guy,

 

Thanks for your reply, but base on my research, I think it's supported by AEM OOTB. The default group value should be "afOptGroupName". For example, an item configured as "afOptGroupName=Group Name" will be treated as an optgroup.

Translate