Add a Prerequisite to a Flag
This topic describes how to use feature flag prerequisites to enable or disable features based on different flag states.
A Prerequisite is a Feature Flag that you add as a dependency to another Feature Flag. That dependency must be met before that second Feature Flag can be toggled ON or OFF. For example, if you have a flag that allows users to write Java, the user must be able to read the Java first. Therefore, you add a Prerequisite to the Write_Java flag that says the Read_Java flag must be enabled before the Write_Java flag can be toggled on.
Add a Prerequisite
Go to the Feature Flag you want to add the Prerequisite to.
Select + New Prerequisite.

A screenshot of the Write_Java Flag with the Prerequisites button highlighted. In Add Prerequisites, click + Prerequisites.
In the first drop-down menu, select the flag you want to use as a Prerequisite.
In the second drop-down, select which Variation of the Prerequisite flag must be served before the Feature Flag can be turned on.
For the example below, the
Read_Javaflag must be set toTruebefore this flag can be enabled.Select Save. The Prerequisite flag is listed on the Feature Flag page and must be met before you can turn on the Feature Flag.

"A screenshot of the Prerequisite flag added to the Write_Java flag.
Last updated
Was this helpful?