Resolve preview errors in AEM Forms after updating logo fragment path
This article explains how to resolve errors that occur when previewing an AEM Form after updating and reuploading the logo fragment path in an XDP.
Description description
Environment
Adobe Experience Manager (AEM) Forms (all versions)
Symptoms
When previewing a form in AEM Forms after changing and reuploading the logo fragment path in the XDP, an error appears and the form doesn’t render as expected. The issue doesn’t occur if the logo fragment path is unchanged. The same logo fragment path works in other XDPs without issue. No explicit error message text was captured.
Cause
This issue is typically caused by authentication restrictions or Protected Mode settings that prevent the updated XDP and its embedded resources (such as the logo fragment) from loading or executing during form preview.
Resolution resolution
Follow the steps below to resolve the issue:
-
Update the Apache Sling Authentication Service configuration to allow the form runtime and client libraries to load without requiring authentication:
-
Ensure the following paths are included in the Authentication Requirements allowlist:
-
/content/xfaforms -
/etc/clientlibs/fd/xfaforms
-
-
In Mobile Forms Configurations, disable Protected Mode to allow the uploaded XDP and its embedded JavaScript to execute during HTML5/Mobile Forms rendering.
-
For production environments, ensure that your XDP is placed in a trusted repository path.
-
Preview the form again to confirm that the issue is resolved.