File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,10 @@ const BookDemoForm = ({ submit_text = "Submit" }: BookDemoFormProps) => {
7474
7575 data . append ( "email" , values . email ) ;
7676 data . append ( "website_url" , values . website_url ) ;
77+ data . append ( "source" , window . location . pathname ) ;
7778 data . append (
7879 "tell_us_more" ,
79- ` ${ values . tell_us_more } ${ topicsSection } \n\nform_source: ${ window . location . pathname + window . location . search + window . location . hash } ` ,
80+ values . tell_us_more ,
8081 ) ;
8182 data . append ( "company_name" , values . first_name + " " + values . last_name ) ;
8283 data . append ( "vat_id" , "" ) ;
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ const BookDemoForm = ({ submit_text = "Submit" }: BookDemoFormProps) => {
5757 data . append ( "street_address" , values . street_address ) ;
5858 data . append ( "town" , values . town ) ;
5959 data . append ( "postal_code" , values . postal_code ) ;
60+ data . append ( "source" , window . location . pathname ) ;
6061 data . append (
6162 "tell_us_more" ,
62- ` ${ values . tell_us_more } \n\nform_source: ${ window . location . pathname + window . location . search + window . location . hash } ` ,
63+ values . tell_us_more ,
6364 ) ;
6465
6566 fetch ( "https://pkgs.defguard.net/api/customer/signup" , {
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ type DealRegistrationFormValues = {
1919 billed_to : string ;
2020 business_type : string ;
2121 tell_us_more : string ;
22+ source : string ;
2223} ;
2324
2425interface DealRegistrationFormProps {
@@ -42,6 +43,7 @@ const DealRegistrationForm = ({ submit_text = "Submit" }: DealRegistrationFormPr
4243 billed_to : "" ,
4344 business_type : "" ,
4445 tell_us_more : "" ,
46+ source : "" ,
4547 } ) ;
4648
4749 const handleAlert = ( ) => {
@@ -66,13 +68,14 @@ const DealRegistrationForm = ({ submit_text = "Submit" }: DealRegistrationFormPr
6668 data . append ( "street_address" , values . street_address ) ;
6769 data . append ( "town" , values . town ) ;
6870 data . append ( "postal_code" , values . postal_code ) ;
71+ data . append ( "source" , window . location . pathname ) ;
6972 data . append ( "partner_registration_email" , values . partner_registration_email ) ;
7073 data . append ( "license_tier" , values . license_tier ) ;
7174 data . append ( "billed_to" , values . billed_to ) ;
7275 data . append ( "business_type" , values . business_type ) ;
7376 data . append (
7477 "tell_us_more" ,
75- ` ${ values . tell_us_more } \n\nform_source: ${ window . location . pathname + window . location . search + window . location . hash } ` ,
78+ values . tell_us_more ,
7679 ) ;
7780
7881
You can’t perform that action at this time.
0 commit comments