Resolving hidden fields visible in AEM forms after Service Pack upgrade

This article addresses the issue of hidden fields being visible in Adobe Experience Manager (AEM) Forms after a Service Pack upgrade. Despite clearing browser, dispatcher, and CDN caches, the problem persisted. Outdated JavaScript files also caused intermittent inconsistent behavior across environments. This article outlines the problem and provides steps to resolve it effectively.

Description description

Environment

Adobe Experience Manager (AEM) Forms, v6.5

Issue/Symptoms

  • Hidden fields on adaptive forms are visible via publisher URLs through dispatchers.
  • The issue does not occur on author servers or direct publisher URLs.
  • Intermittent loading issues for adaptive forms due to outdated JavaScript files (guideRuntime.min.js) cached at browser, dispatcher, or CDN levels.
  • Clearing browser cache resolves the issue temporarily for some users but not globally.

Resolution resolution

To resolve hidden field issues and ensure consistent form rendering across environments:

  1. Unpublish and republish affected forms and site pages to flush caches at all levels (browser, dispatcher, CDN).
  2. Change the adaptive form server-side caching setting from 100 to 0 to ensure each form request fetches fresh data from the publisher.
  3. Verify the dispatcher cache settings and clear cached files under /var/www/cache/etc.clientlibs/clientlibs/... if /docroot is set to/var/www/cache, ensuring stale JavaScript or CSS assets are removed from the dispatcher cache.
  4. Engage your CDN team to clear cached assets related to affected paths and confirm which specific paths are being cached by the CDN, and ensure they are refreshed.
  5. Modify JavaScript/CSS content in custom client libraries to generate new hashed URLs automatically, forcing browsers to load updated versions of assets without relying on manual cache clearing.
  6. Update JavaScript processor settings from min:yui to min:gcc in the configuration settings for JS processors in AEM Forms to resolve UI-related issues caused by incompatible minification methods.
  7. Clear the locales cache at both the dispatcher and CDN levels if the issue is specific to certain locale versions of a form and aggressive caching is enabled separately for all locales. This ensures that the content is updated from the publisher to the dispatcher and CDN, providing consistent behavior across all form versions.
  8. Restart affected publishers after implementing changes to ensure configurations take effect properly.
  9. Test in incognito mode or clear browser cookies and cache manually if users experience persistent issues.
  10. Validate changes with internal users before broad rollout, and gather feedback from external users accessing forms via dispatchers/CDN domains for further adjustments if necessary.

Follow these steps systematically to resolve hidden field visibility issues and ensure adaptive forms render correctly across all environments without frequent manual cache management.

Configure adaptive forms cache

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f