Enable Feature Toggle on Adobe Experience Software Development Kit (AEM SDK)
Feature Toggle in AEM allows administrators to enable or disable features at runtime ideal for managing Early Adopter and Prerelease features without code changes. It supports gradual rollouts, A/B testing, and quick deactivation of unstable features.
This article covers how to enable feature toggles in AEM Local SDK setup, which simulates AEM as a Cloud Service using the SDK and Dispatcher. This setup helps teams test in a production-like environment before deploying to the cloud.
Why Use Feature Toggles in a AEM SDK Setup?
When working in a AEM SDK setup, feature toggles help in:
-
Testing experimental features safely.
-
Rolling out new components in phases.
-
Maintaining a single codebase across multiple environments.
-
Reducing risk during deployments and upgrades.
Prerequisites
Before enabling feature toggles in your AEM SDK setup, ensure the following:
-
User is member of
forms-users
group. -
Navigate to
http://<author-instance-url>:portnumber/system/console/bundles
and check whether (com.adobe.granite.toggle.impl.dev-1.1.2.jar) bundle is present or not. In case it is not present download the bundle from the link.
Enable Feature Toggle
Follow these steps to enable feature toggles in your AEM SDK instance:
-
Log in to your AEM Forms instance.
-
Navigate to
http://author-instance-url:portnumber/system/console/configMgr
. -
Search for Adobe Granite Dynamic Toggle Provider in the Configuration Manager.
-
Click the icon ✏️ .
-
In the Enabled Toggles section, click➕ .
-
Add the feature toggle id for the feature as shown in the image below.
-
Click Save
Disable Feature Toggle
To disable the feature toggle(s) for features whose toggle(s) are enabled, follow the steps below:
-
Log in to your AEM Forms instance.
-
Navigate to
http://author-instance-url:portnumber/system/console/configMgr
. -
Search for Adobe Granite Dynamic Toggle Provider in the Configuration Manager.
-
Click the icon ✏️.
-
In the Disabled Toggles section, click ➕.
-
Add the toggle number for the feature to be disabled.
Technical Consideration
Feature toggles are runtime-managed and best suited for development or testing setups. In a AEM SDK setup, ensure toggles are version-controlled and synced with CI/CD. Page refresh or cache clearing may be needed for changes to reflect.