Enumeration dropdown options aren’t filtered by another field in AEM Content Fragment Models
This article describes the limitation of enumeration dropdown fields in Adobe Experience Manager Content Fragment Models, where conditional filtering based on other field selections is not supported, and provides guidance for addressing this scenario.
Description description
Environment
Adobe Experience Manager Content Fragment Models in AEM 6.5 and AEM as a Cloud Service
Issue/Symptoms
- You need the options in one Enumeration dropdown field to depend on the selection in another field.
- For example, selecting a value in a
Categorydropdown should filter the options in a relatedSub Categorydropdown. - The built-in Enumeration field uses options defined in the Content Fragment Model and doesn’t provide this dependent-option filtering.
Cause
Content Fragment Model Enumeration fields use options defined in the model. The built-in field doesn’t filter one Enumeration field’s available options based on another field’s selection. A custom implementation is required for this dependent-dropdown behavior.
Resolution resolution
Follow the steps below to address the requirement:
-
Review your use case and determine whether it requires dropdown values to change dynamically based on selections in another field.
Note: AEM Content Fragment Models do not currently support dynamic filtering of enumeration field values based on the value selected in another field.
-
If this capability is required, implement a custom solution to provide the desired conditional dropdown behavior.
-
Monitor Adobe Experience Manager release notes and product documentation for future enhancements to Content Fragment Model capabilities.
-
After implementing a custom solution, thoroughly test the Content Fragment Model and verify that the conditional dropdown behavior works as expected.