From 447baf32d393569b759fd7777418cfa70498263f Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 7 Mar 2024 13:47:28 -0600 Subject: [PATCH] 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) --- website/assets/js/pages/contact.page.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/assets/js/pages/contact.page.js b/website/assets/js/pages/contact.page.js index 05d2aff092..99f58187df 100644 --- a/website/assets/js/pages/contact.page.js +++ b/website/assets/js/pages/contact.page.js @@ -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) {