Skip to content

Scheduling infrastructure for absolutely everyone.

chore: Add consent message when SMS workflows are related (#20741)

Joe Au-Yeungdc409e1c5a1b
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json
index 211c236167f..ad5ae6ff31d 100644
--- a/apps/web/public/static/locales/en/common.json
+++ b/apps/web/public/static/locales/en/common.json
@@ -3140,5 +3140,6 @@
"reschedule_cta_short": "Reschedule here.",
"you_and_conjunction": "You &",
"email_survey_triggered_by_workflow": "This survey was triggered by a Workflow in Cal.",
+ "sms_workflow_consent": "By entering your phone number you consent to receive SMS messages for this event. SMS rates may apply.",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}
diff --git a/packages/features/form-builder/FormBuilderField.tsx b/packages/features/form-builder/FormBuilderField.tsx
index b47574ca171..4cd6f2d4d78 100644
--- a/packages/features/form-builder/FormBuilderField.tsx
+++ b/packages/features/form-builder/FormBuilderField.tsx
@@ -164,6 +164,9 @@ const WithLabel = ({
</div>
)}
{children}
+ {field.name === "smsReminderNumber" && (
+ <div className="text-sm text-gray-500">{t("sms_workflow_consent")}</div>
+ )}
</div>
);
};