File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,12 @@ 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 ) ;
78+ data . append ( "search" , window . location . search ) ;
79+ data . append ( "hash" , window . location . hash ) ;
7780 data . append (
7881 "tell_us_more" ,
79- `${ values . tell_us_more } ${ topicsSection } \n\nform_source: ${ window . location . pathname + window . location . search + window . location . hash } ` ,
82+ `${ values . tell_us_more } ${ topicsSection } ` ,
8083 ) ;
8184 data . append ( "company_name" , values . first_name + " " + values . last_name ) ;
8285 data . append ( "vat_id" , "" ) ;
Original file line number Diff line number Diff line change @@ -57,9 +57,12 @@ 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 ) ;
61+ data . append ( "search" , window . location . search ) ;
62+ data . append ( "hash" , window . location . hash ) ;
6063 data . append (
6164 "tell_us_more" ,
62- ` ${ values . tell_us_more } \n\nform_source: ${ window . location . pathname + window . location . search + window . location . hash } ` ,
65+ values . tell_us_more ,
6366 ) ;
6467
6568 fetch ( "https://pkgs.defguard.net/api/customer/signup" , {
Original file line number Diff line number Diff line change @@ -66,13 +66,16 @@ const DealRegistrationForm = ({ submit_text = "Submit" }: DealRegistrationFormPr
6666 data . append ( "street_address" , values . street_address ) ;
6767 data . append ( "town" , values . town ) ;
6868 data . append ( "postal_code" , values . postal_code ) ;
69+ data . append ( "source" , window . location . pathname ) ;
70+ data . append ( "search" , window . location . search ) ;
71+ data . append ( "hash" , window . location . hash ) ;
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