diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx
index 9305e7e4d1..cfb99b2fc0 100644
--- a/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx
+++ b/apps/web/app/(app)/environments/[environmentId]/settings/(organization)/general/page.tsx
@@ -1,6 +1,11 @@
import { OrganizationSettingsNavbar } from "@/app/(app)/environments/[environmentId]/settings/(organization)/components/OrganizationSettingsNavbar";
import { isInstanceAIConfigured } from "@/lib/ai/service";
-import { FB_LOGO_URL, IS_FORMBRICKS_CLOUD, IS_STORAGE_CONFIGURED } from "@/lib/constants";
+import {
+ ENTERPRISE_LICENSE_REQUEST_FORM_URL,
+ FB_LOGO_URL,
+ IS_FORMBRICKS_CLOUD,
+ IS_STORAGE_CONFIGURED,
+} from "@/lib/constants";
import { getUser } from "@/lib/user/service";
import { getTranslate } from "@/lingodotdev/server";
import { getIsMultiOrgEnabled, getWhiteLabelPermission } from "@/modules/ee/license-check/lib/utils";
@@ -80,6 +85,7 @@ const Page = async (props: { params: Promise<{ environmentId: string }> }) => {
fbLogoUrl={FB_LOGO_URL}
user={user}
isStorageConfigured={IS_STORAGE_CONFIGURED}
+ enterpriseLicenseRequestFormUrl={ENTERPRISE_LICENSE_REQUEST_FORM_URL}
/>
{isMultiOrgEnabled && (
}>
diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx
index 2f1f8371a5..bd723e899c 100644
--- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx
+++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA.tsx
@@ -31,6 +31,7 @@ interface SurveyAnalysisCTAProps {
isContactsEnabled: boolean;
isFormbricksCloud: boolean;
isStorageConfigured: boolean;
+ enterpriseLicenseRequestFormUrl: string;
}
interface ModalState {
@@ -47,6 +48,7 @@ export const SurveyAnalysisCTA = ({
isContactsEnabled,
isFormbricksCloud,
isStorageConfigured,
+ enterpriseLicenseRequestFormUrl,
}: SurveyAnalysisCTAProps) => {
const { t } = useTranslation();
const router = useRouter();
@@ -231,6 +233,7 @@ export const SurveyAnalysisCTA = ({
isReadOnly={isReadOnly}
isStorageConfigured={isStorageConfigured}
projectCustomScripts={project.customHeadScripts}
+ enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl}
/>
)}
diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx
index e7a45bec80..1ca6a85f71 100644
--- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx
+++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/share-survey-modal.tsx
@@ -54,6 +54,7 @@ interface ShareSurveyModalProps {
isReadOnly: boolean;
isStorageConfigured: boolean;
projectCustomScripts?: string | null;
+ enterpriseLicenseRequestFormUrl: string;
}
export const ShareSurveyModal = ({
@@ -69,6 +70,7 @@ export const ShareSurveyModal = ({
isReadOnly,
isStorageConfigured,
projectCustomScripts,
+ enterpriseLicenseRequestFormUrl,
}: ShareSurveyModalProps) => {
const environmentId = survey.environmentId;
const [surveyUrl, setSurveyUrl] = useState(getSurveyUrl(survey, publicDomain, "default"));
@@ -108,6 +110,7 @@ export const ShareSurveyModal = ({
segments,
isContactsEnabled,
isFormbricksCloud,
+ enterpriseLicenseRequestFormUrl,
},
disabled: survey.singleUse?.enabled,
},
diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx
index ee997970c8..a5d169eae9 100644
--- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx
+++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/personal-links-tab.tsx
@@ -7,7 +7,6 @@ import toast from "react-hot-toast";
import { useTranslation } from "react-i18next";
import { TSegment } from "@formbricks/types/segment";
import { DocumentationLinks } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/documentation-links";
-import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants";
import { getFormattedErrorMessage } from "@/lib/utils/helper";
import { Button } from "@/modules/ui/components/button";
import { DatePicker } from "@/modules/ui/components/date-picker";
@@ -35,6 +34,7 @@ interface PersonalLinksTabProps {
segments: TSegment[];
isContactsEnabled: boolean;
isFormbricksCloud: boolean;
+ enterpriseLicenseRequestFormUrl: string;
}
interface PersonalLinksFormData {
@@ -75,6 +75,7 @@ export const PersonalLinksTab = ({
surveyId,
isContactsEnabled,
isFormbricksCloud,
+ enterpriseLicenseRequestFormUrl,
}: PersonalLinksTabProps) => {
const { t } = useTranslation();
@@ -170,7 +171,7 @@ export const PersonalLinksTab = ({
text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"),
href: isFormbricksCloud
? `/environments/${environmentId}/settings/billing`
- : ENTERPRISE_LICENSE_REQUEST_FORM_URL,
+ : enterpriseLicenseRequestFormUrl,
},
{
text: t("common.learn_more"),
diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx
index 08ebf09dbe..7bb6512137 100644
--- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx
+++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/page.tsx
@@ -4,7 +4,12 @@ import { SurveyAnalysisNavigation } from "@/app/(app)/environments/[environmentI
import { SummaryPage } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SummaryPage";
import { SurveyAnalysisCTA } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/SurveyAnalysisCTA";
import { getSurveySummary } from "@/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/lib/surveySummary";
-import { DEFAULT_LOCALE, IS_FORMBRICKS_CLOUD, IS_STORAGE_CONFIGURED } from "@/lib/constants";
+import {
+ DEFAULT_LOCALE,
+ ENTERPRISE_LICENSE_REQUEST_FORM_URL,
+ IS_FORMBRICKS_CLOUD,
+ IS_STORAGE_CONFIGURED,
+} from "@/lib/constants";
import { getPublicDomain } from "@/lib/getPublicUrl";
import { getSurvey } from "@/lib/survey/service";
import { getUser } from "@/lib/user/service";
@@ -74,6 +79,7 @@ const SurveyPage = async (props: { params: Promise<{ environmentId: string; surv
isContactsEnabled={isContactsEnabled}
isFormbricksCloud={IS_FORMBRICKS_CLOUD}
isStorageConfigured={IS_STORAGE_CONFIGURED}
+ enterpriseLicenseRequestFormUrl={ENTERPRISE_LICENSE_REQUEST_FORM_URL}
/>
}>
diff --git a/apps/web/modules/ee/quotas/components/quotas-card.tsx b/apps/web/modules/ee/quotas/components/quotas-card.tsx
index d7cc16492a..8f80029984 100644
--- a/apps/web/modules/ee/quotas/components/quotas-card.tsx
+++ b/apps/web/modules/ee/quotas/components/quotas-card.tsx
@@ -10,7 +10,6 @@ import toast from "react-hot-toast";
import { useTranslation } from "react-i18next";
import { TSurveyQuota, TSurveyQuotaInput } from "@formbricks/types/quota";
import { TSurvey } from "@formbricks/types/surveys/types";
-import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants";
import { getFormattedErrorMessage } from "@/lib/utils/helper";
import {
createQuotaAction,
@@ -30,6 +29,7 @@ interface QuotasCardProps {
isFormbricksCloud?: boolean;
quotas: TSurveyQuota[];
hasResponses: boolean;
+ enterpriseLicenseRequestFormUrl: string;
}
const AddQuotaButton = ({
@@ -68,6 +68,7 @@ export const QuotasCard = ({
isFormbricksCloud,
quotas,
hasResponses,
+ enterpriseLicenseRequestFormUrl,
}: QuotasCardProps) => {
const { t } = useTranslation();
const [open, setOpen] = useState(false);
@@ -178,7 +179,7 @@ export const QuotasCard = ({
text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"),
href: isFormbricksCloud
? `/environments/${environmentId}/settings/billing`
- : ENTERPRISE_LICENSE_REQUEST_FORM_URL,
+ : enterpriseLicenseRequestFormUrl,
},
{
text: t("common.learn_more"),
diff --git a/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx b/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx
index 07bcdefe09..8c640fd7b1 100644
--- a/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx
+++ b/apps/web/modules/ee/whitelabel/email-customization/components/email-customization-settings.tsx
@@ -11,7 +11,6 @@ import { TAllowedFileExtension } from "@formbricks/types/storage";
import { TUser } from "@formbricks/types/user";
import { SettingsCard } from "@/app/(app)/environments/[environmentId]/settings/components/SettingsCard";
import { cn } from "@/lib/cn";
-import { ENTERPRISE_LICENSE_REQUEST_FORM_URL } from "@/lib/constants";
import { getFormattedErrorMessage } from "@/lib/utils/helper";
import {
removeOrganizationEmailLogoUrlAction,
@@ -37,6 +36,7 @@ interface EmailCustomizationSettingsProps {
user: TUser | null;
fbLogoUrl: string;
isStorageConfigured: boolean;
+ enterpriseLicenseRequestFormUrl: string;
}
export const EmailCustomizationSettings = ({
@@ -48,6 +48,7 @@ export const EmailCustomizationSettings = ({
user,
fbLogoUrl,
isStorageConfigured,
+ enterpriseLicenseRequestFormUrl,
}: EmailCustomizationSettingsProps) => {
const { t } = useTranslation();
@@ -185,7 +186,7 @@ export const EmailCustomizationSettings = ({
text: isFormbricksCloud ? t("common.upgrade_plan") : t("common.request_trial_license"),
href: isFormbricksCloud
? `/environments/${environmentId}/settings/billing`
- : ENTERPRISE_LICENSE_REQUEST_FORM_URL,
+ : enterpriseLicenseRequestFormUrl,
},
{
text: t("common.learn_more"),
diff --git a/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx b/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx
index 1fb0a348ec..f7a5c42ded 100644
--- a/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx
+++ b/apps/web/modules/organization/settings/teams/components/edit-memberships/organization-actions.tsx
@@ -39,6 +39,7 @@ interface OrganizationActionsProps {
isStorageConfigured: boolean;
isTeamAdmin: boolean;
userAdminTeamIds?: string[];
+ enterpriseLicenseRequestFormUrl: string;
}
export const OrganizationActions = ({
@@ -56,6 +57,7 @@ export const OrganizationActions = ({
isStorageConfigured,
isTeamAdmin,
userAdminTeamIds,
+ enterpriseLicenseRequestFormUrl,
}: OrganizationActionsProps) => {
const router = useRouter();
const { t } = useTranslation();
@@ -174,6 +176,7 @@ export const OrganizationActions = ({
isOwnerOrManager={isOwnerOrManager}
isTeamAdmin={isTeamAdmin}
userAdminTeamIds={userAdminTeamIds}
+ enterpriseLicenseRequestFormUrl={enterpriseLicenseRequestFormUrl}
/>