Website: Update "Talk to us" form redirect (#17465)

Changes:
- Updated the "Talk to us" form on the /contact page to redirect users
who have <700 hosts to the "Lets get you set up" Calendly event
(https://calendly.com/fleetdm/chat)
This commit is contained in:
Eric 2024-03-07 13:47:28 -06:00 committed by GitHub
parent 6b73816548
commit 447baf32d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,11 @@ parasails.registerPage('contact', {
},
submittedTalkToUsForm: async function() {
this.syncing = true;
window.location = `https://calendly.com/fleetdm/talk-to-us?email=${encodeURIComponent(this.formData.emailAddress)}&name=${this.formData.firstName}+${this.formData.lastName}`;
if(this.formData.numberOfHosts > 700){
window.location = `https://calendly.com/fleetdm/talk-to-us?email=${encodeURIComponent(this.formData.emailAddress)}&name=${this.formData.firstName}+${this.formData.lastName}`;
} else {
window.location = `https://calendly.com/fleetdm/chat?email=${encodeURIComponent(this.formData.emailAddress)}&name=${this.formData.firstName}+${this.formData.lastName}`;
}
},
clickSwitchForms: function(form) {