AEM Assets: Required single-select dropdown validation error persists after using Revert

This article explains an issue in Adobe Experience Manager (AEM) Assets where required single-select dropdown fields continue to display a validation error after using the Revert option, and provides steps to resolve the problem.

Description description

Environment

Adobe Experience Manager (AEM) Assets (all versions)

Symptoms

  • When editing asset metadata, if a required single-select dropdown field is cleared and then the Revert button is used, the previously saved value is restored in the dropdown.
  • However, the validation error message (Please fill out this field.) remains visible, and the form can’t be saved until the field is manually reselected, or the editor is refreshed.

Cause

The validation state for required single-select dropdown fields isn’t automatically refreshed after using the Revert option. As a result, the validation error persists even though the field appears to have a valid value.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Avoid clearing required single-select dropdown fields using Backspace or Delete. Instead, select the appropriate value directly from the dropdown.

  2. If a validation error appears after clearing and reverting:

    a. Manually select the required value from the dropdown.

    b. Confirm that the validation message disappears.

    c. Save the asset metadata or Content Fragment.

  3. If the validation message persists after using Revert, refresh or reopen the editor before continuing to ensure the validation state is updated.

  4. Consider setting a valid default value for required dropdowns, if it aligns with your business requirements.

To verify resolution, confirm that the validation message is cleared, and the form can be saved successfully.

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