Formbricks Bug Fix: doesNotEqual Logic Always Returned True for Single-Choice Surveys
A bug in Formbricks, an open-source survey platform, caused the doesNotEqual condition to always evaluate as true for single-choice survey questions. The flaw resided in logic.ts, the module responsible for routing respondents through branching survey paths. When a selected answer was stored as a single-element array, a JavaScript type-comparison quirk made one clause of the OR expression unconditionally true, overriding the correct negation logic. This meant any skip logic using doesNotEqual on single-choice questions would silently misroute all respondents, regardless of their actual answer. The issue, tracked as #8527, has been patched by correcting the fallback expression to properly negate the full equals condition.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in