Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

Hi Guys.

 

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

fulongt37334138_0-1681219217952.png

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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...

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

@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...

Avatar

Level 3

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.