diff --git a/gravity-forms/gw-conditional-logic-operator-does-not-contain.php b/gravity-forms/gw-conditional-logic-operator-does-not-contain.php index f96ddbdc5..3a57dd33b 100644 --- a/gravity-forms/gw-conditional-logic-operator-does-not-contain.php +++ b/gravity-forms/gw-conditional-logic-operator-does-not-contain.php @@ -1,7 +1,7 @@ + k === "contains" ? [[k, v], ['does_not_contain', 'does not contain']] : [[k, v]] + ) + ); return operators; } ); + + let origRuleNeedsTextValue = window.ruleNeedsTextValue; + // Override the default GF function to add our custom operator. + window.ruleNeedsTextValue = function( rule ) { + let needsTextValue = origRuleNeedsTextValue( rule ); + return needsTextValue || rule.operator.indexOf( 'does_not_contain' ) !== -1; + }