How to set optgroup for AEM Adaptive Forms OOTB dropdownlist component? | Community
Skip to main content
fulongt37334138
Level 2
April 11, 2023
Solved

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

  • April 11, 2023
  • 1 reply
  • 649 views

Hi Guys.

 

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

 

Best answer by Pulkit_Jain_

@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

1 reply

Pulkit_Jain_
Adobe Employee
Pulkit_Jain_Adobe EmployeeAccepted solution
Adobe Employee
April 12, 2023

@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

fulongt37334138
Level 2
April 14, 2023

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.