This message was deleted.
# announcements
w
This message was deleted.
f
The
forceVariation
method doesn't work for experiments run through feature flags. As soon as you force a variation, you are no longer "included" in the experiment and the rule will be skipped. There is the
setForcedFeatures
method instead which lets you directly override the value of a feature.
Copy code
growthbook.setForcedFeatures(new Map([
  ['webtest-feature', false]
]))
I can see how this is super confusing though. I think we can change it so that
forceVariation
does work for features, which should be more intuitive
l
Thanks, would make sense! Also, note in documentation would be helpful 😉
272 Views