Skip to content

UX/UI - Multivariate flag with "Prevent Flag defaults" #8663

Open

Description

@Holmus

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

When creating a multivariate flag with prevent flag defaults turned on, the control value is not included after creation but the variant value(s) are.

Steps To Reproduce

  1. Turn on prevent flag defaults.
  2. create a multivariate flag with a control value and variant(s) value(s)
  3. Observe that the control value is cleared but the variant(s) value(s) are not.

Expected behavior

Not entirely sure.

Screenshots

Screen.Recording.2026-10-02.at.16.11.40.mov

Activity

  1. added theissue type on Oct 2, 2026
  2. self-assigned this
    on Oct 2, 2026
  3. matthewelwell commented on Oct 12, 2026

    @matthewelwell
    Contributor

    Suggested approach here would be to persist the flag value to all environments if the feature being created is a multivariate feature (i.e. ignore prevent_flag_defaults if Feature.type == "MULTIVARIATE")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions