Change the Variations of Your Flags
This topic describes how to edit the default variations of your feature flag.
When you create a Feature Flag, it has default Variations that are served when the Flag is toggled ON or OFF. You can accept these default Variations or you can change them.
For example:
A Boolean Flag could have
falseset as its defaultOFFVariation andtrueset as its defaultONVariation. You could change theONVariation tofeature_enabledand theOFFVariation tofeature_disabled.A Multivariate Flag could have
Variation_1set as its defaultOFFvariation andVariation_2set as its defaultONvariation, withVariation_3configured to be served only when a user has a certain email address.
You can edit the Variations of your Flags on the Harness Platform even after using the Harness Feature Flag SDKs in your application.This topic describes how to edit the default Variations of your Feature Flag and how to edit the Variations that are served for your current Environment.
Edit the default Flag Variations
Go to the Feature Flag you want to edit the Variations for.
In Variations, click the edit icon.

The Edit Variations icon. In Edit Variations, you can add or delete a Variation and also edit the following:
Name: The name of the Variation, for example
Enabled. The identifier is not changed if you change the name.Value: The value of the Variation, for example
Feature_Enabled.Description: An optional description for the Variation.
Default rules for the flag: The rules that are served by default for this Flag, for example, when the Flag is enabled, serve the
EnabledVariation.
The Edit Variations page.
Edit the Variations served for your current Environment
Go to the Feature Flag you want to edit the Variations for.
In the Targeting tab, under When the Default Flag is Enabled and When the Default Flag is Disabled, select the Variations you want to set as the default.

The Targeting tab of a Flag, which highlights where you can change which Flag Variation is served. Click Save to save your changes.
Last updated
Was this helpful?