Skip to content

Commit 37482ab

Browse files
committed
Split to individual objects
1 parent c912bd1 commit 37482ab

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/components/form/BookDemoForm/BookDemoForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ const BookDemoForm = ({ submit_text = "Submit" }: BookDemoFormProps) => {
7575
data.append("email", values.email);
7676
data.append("website_url", values.website_url);
7777
data.append("source", window.location.pathname);
78+
data.append("search",window.location.search);
79+
data.append("hash",window.location.hash);
7880
data.append(
7981
"tell_us_more",
80-
`${values.tell_us_more}${topicsSection}\n\nform_source:${window.location.pathname + window.location.search + window.location.hash}`,
82+
`${values.tell_us_more}${topicsSection}`,
8183
);
8284
data.append("company_name",values.first_name+" "+values.last_name);
8385
data.append("vat_id", "");

src/components/form/BookDemoForm/BookEvaluationLicenseForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ const BookDemoForm = ({ submit_text = "Submit" }: BookDemoFormProps) => {
5858
data.append("town", values.town);
5959
data.append("postal_code", values.postal_code);
6060
data.append("source", window.location.pathname);
61+
data.append("search",window.location.search);
62+
data.append("hash",window.location.hash);
6163
data.append(
6264
"tell_us_more",
63-
`${values.tell_us_more} \n\nform_source:${window.location.pathname + window.location.search + window.location.hash}`,
65+
values.tell_us_more,
6466
);
6567

6668
fetch("https://pkgs.defguard.net/api/customer/signup", {

src/components/form/DealRegistrationForm/DealRegistrationForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ const DealRegistrationForm = ({ submit_text = "Submit" }: DealRegistrationFormPr
6767
data.append("town", values.town);
6868
data.append("postal_code", values.postal_code);
6969
data.append("source",window.location.pathname);
70+
data.append("search",window.location.search);
71+
data.append("hash",window.location.hash);
7072
data.append("partner_registration_email",values.partner_registration_email);
7173
data.append("license_tier",values.license_tier);
7274
data.append("billed_to",values.billed_to);
7375
data.append("business_type",values.business_type);
7476
data.append(
7577
"tell_us_more",
76-
`${values.tell_us_more} \n\nform_source:${window.location.pathname + window.location.search + window.location.hash}`,
78+
values.tell_us_more,
7779
);
7880

7981

0 commit comments

Comments
 (0)