diff --git a/app/client/jest.config.js b/app/client/jest.config.js
index e4074a35c257..70145c31a8ae 100644
--- a/app/client/jest.config.js
+++ b/app/client/jest.config.js
@@ -116,6 +116,7 @@ module.exports = {
disableIframeWidgetSandbox: parseConfig(
"__APPSMITH_DISABLE_IFRAME_WIDGET_SANDBOX__",
),
+ hideHelpButton: parseConfig("__APPSMITH_HIDE_HELP_BUTTON__"),
},
},
};
diff --git a/app/client/public/index.html b/app/client/public/index.html
index 379aea5663a6..75cf81115083 100755
--- a/app/client/public/index.html
+++ b/app/client/public/index.html
@@ -261,6 +261,7 @@
disableIframeWidgetSandbox: parseConfig(
'{{env "APPSMITH_DISABLE_IFRAME_WIDGET_SANDBOX"}}',
),
+ hideHelpButton: parseConfig('{{env "APPSMITH_HIDE_HELP_BUTTON"}}'),
customerPortalUrl:
parseConfig('{{env "APPSMITH_CUSTOMER_PORTAL_URL"}}') ||
"https://customer.appsmith.com",
diff --git a/app/client/src/ce/configs/index.ts b/app/client/src/ce/configs/index.ts
index 2cd34612812f..f398b3f0c021 100644
--- a/app/client/src/ce/configs/index.ts
+++ b/app/client/src/ce/configs/index.ts
@@ -59,6 +59,7 @@ export interface INJECTED_CONFIGS {
googleRecaptchaSiteKey: string;
supportEmail: string;
disableIframeWidgetSandbox: boolean;
+ hideHelpButton: boolean;
pricingUrl: string;
customerPortalUrl: string;
}
@@ -132,6 +133,9 @@ export const getConfigsFromEnvVars = (): INJECTED_CONFIGS => {
.APPSMITH_DISABLE_IFRAME_WIDGET_SANDBOX
? process.env.APPSMITH_DISABLE_IFRAME_WIDGET_SANDBOX.length > 0
: false,
+ hideHelpButton: process.env.APPSMITH_HIDE_HELP_BUTTON
+ ? process.env.APPSMITH_HIDE_HELP_BUTTON.length > 0
+ : false,
pricingUrl: process.env.REACT_APP_PRICING_URL || "",
customerPortalUrl: process.env.REACT_APP_CUSTOMER_PORTAL_URL || "",
};
@@ -276,6 +280,10 @@ export const getAppsmithConfigs = (): AppsmithUIConfigs => {
ENV_CONFIG.disableIframeWidgetSandbox ||
APPSMITH_FEATURE_CONFIGS?.disableIframeWidgetSandbox ||
false,
+ hideHelpButton:
+ ENV_CONFIG.hideHelpButton ||
+ APPSMITH_FEATURE_CONFIGS?.hideHelpButton ||
+ false,
pricingUrl:
ENV_CONFIG.pricingUrl || APPSMITH_FEATURE_CONFIGS?.pricingUrl || "",
customerPortalUrl:
diff --git a/app/client/src/ce/configs/types.ts b/app/client/src/ce/configs/types.ts
index b547542f38bc..3e6998d5c028 100644
--- a/app/client/src/ce/configs/types.ts
+++ b/app/client/src/ce/configs/types.ts
@@ -58,6 +58,7 @@ export interface AppsmithUIConfigs {
};
appsmithSupportEmail: string;
disableIframeWidgetSandbox: boolean;
+ hideHelpButton: boolean;
pricingUrl: string;
customerPortalUrl: string;
}
diff --git a/app/client/src/pages/Editor/HelpButton.tsx b/app/client/src/pages/Editor/HelpButton.tsx
index dd12c08b25e4..e1cf7125b402 100644
--- a/app/client/src/pages/Editor/HelpButton.tsx
+++ b/app/client/src/pages/Editor/HelpButton.tsx
@@ -46,7 +46,8 @@ import BetterbugsUtil from "utils/Analytics/betterbugs";
import { isAirgapped } from "ee/utils/airgapHelpers";
import { useBetterbugsMetadata } from "utils/hooks/useBetterbugsMetadata";
-const { appVersion, betterbugs, cloudHosting } = getAppsmithConfigs();
+const { appVersion, betterbugs, cloudHosting, hideHelpButton } =
+ getAppsmithConfigs();
const HelpFooter = styled.div`
display: flex;
@@ -227,6 +228,8 @@ function HelpButton() {
bootPylon(user);
}, [user?.email, user?.emailVerificationHash, user?.name, user?.username]);
+ if (hideHelpButton) return null;
+
return (