Skip to main content

Enable or Disable Your Flags

This topic describes how to turn a Feature Flag on or off. Flags you create are available in all Environments, but the state of the Flag is independent, which means the same Flag can be turned on in Environment_A and turned off in Environment_B.

Before enabling or disabling a Flag, consider the following:

  • Remember to check which Environment you are in before toggling any Flags to ensure you are enabling or disabling the feature in the correct Environment.
  • By default, Flags are disabled on creation, so you need to enable them when you are ready to use them in your application.
  • When a Flag is disabled, the off Variation (which is the default variation) is served to all users. The Flag does not evaluate any Targets or Target Rules until you enable it.

Enable or disable Flags from the Feature Flag dashboard

To enable or disable a Flag from the Feature Flag dashboard:

  1. In your Harness Project, go to Feature Flags. A list of all your Flags is displayed.
  2. Toggle the button next to the Flag name to turn the Flag on or off.
  3. Check the details are correct, then click Confirm.

A screenshot of a message asking the user to confirm they want to toggle a flag on. Figure 1: Confirm the Flag should be turned on

Enable or disable Feature Flags from the Targeting tab

To enable or disable a Flag from the Feature Flag from the Targeting tab:

  1. In your Harness Project, go to Feature Flags. A list of all your Flags is displayed.
  2. Click the Flag you want to enable or disable, then click Targeting.
  3. Depending on the action you want to take, toggle Flag Enabled or Flag Disabled.
  4. Click Save.

A screenshot of a message asking the user to confirm they want to toggle a flag on. Figure 2: The Targeting tab of a Flag