diff --git a/app/client/src/components/formControls/BaseControl.tsx b/app/client/src/components/formControls/BaseControl.tsx index 7f2e7c1241..6bf3ad21ae 100644 --- a/app/client/src/components/formControls/BaseControl.tsx +++ b/app/client/src/components/formControls/BaseControl.tsx @@ -21,7 +21,8 @@ export type ComparisonOperations = | "IN" | "NOT_IN" | "FEATURE_FLAG" - | "VIEW_MODE"; + | "VIEW_MODE" + | "DEFINED_AND_NOT_EQUALS"; export enum ComparisonOperationsEnum { VIEW_MODE = "VIEW_MODE", diff --git a/app/client/src/components/formControls/utils.ts b/app/client/src/components/formControls/utils.ts index b5e78233df..4ec2bd0e7c 100644 --- a/app/client/src/components/formControls/utils.ts +++ b/app/client/src/components/formControls/utils.ts @@ -255,6 +255,8 @@ export const caculateIsHidden = ( case "VIEW_MODE": // This can be used to decide which form controls to show in view mode or edit mode depending on the value. return viewMode === value; + case "DEFINED_AND_NOT_EQUALS": + return !!valueAtPath && valueAtPath !== value; default: return true; } diff --git a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/form.json b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/form.json index 8053ec58f2..265cb6df3f 100644 --- a/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/form.json +++ b/app/server/appsmith-plugins/snowflakePlugin/src/main/resources/form.json @@ -95,7 +95,7 @@ }, { "path": "datasourceConfiguration.authentication.authenticationType", - "comparison": "NOT_EQUALS", + "comparison": "DEFINED_AND_NOT_EQUALS", "value": "dbAuth" } ]