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 Category dropdown should filter the options in a related Sub Category dropdown.
  • 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:

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

  2. If this capability is required, implement a custom solution to provide the desired conditional dropdown behavior.

  3. Monitor Adobe Experience Manager release notes and product documentation for future enhancements to Content Fragment Model capabilities.

  4. After implementing a custom solution, thoroughly test the Content Fragment Model and verify that the conditional dropdown behavior works as expected.

recommendation-more-help
experience-cloud-kcs-help-kbarticles