diff --git a/website/assets/js/pages/contact.page.js b/website/assets/js/pages/contact.page.js index a8d9f24772..ab4ea5bcf2 100644 --- a/website/assets/js/pages/contact.page.js +++ b/website/assets/js/pages/contact.page.js @@ -53,7 +53,7 @@ parasails.registerPage('contact', { // Otherwise, default to the formToShow value from the page's controller. this.formToDisplay = this.formToShow; } - if(this.primaryBuyingSituation){ // If the user has a priamry buying situation set in their sesssion, pre-fill the form. + if(this.primaryBuyingSituation && !['vm', 'security-misc', 'security-vm', 'it-major-mdm', 'it-gap-filler-mdm', 'it-misc'].includes(this.primaryBuyingSituation)){ // If the user has a priamry buying situation set in their sesssion, pre-fill the form. // Note: this will be overriden if the user is logged in and has a primaryBuyingSituation set in the database. this.$set(this.formData, 'primaryBuyingSituation', this.primaryBuyingSituation); } diff --git a/website/assets/js/pages/start.page.js b/website/assets/js/pages/start.page.js index 2f62581ab9..9b2a572e8e 100644 --- a/website/assets/js/pages/start.page.js +++ b/website/assets/js/pages/start.page.js @@ -89,7 +89,8 @@ parasails.registerPage('start', { } // If this user has not completed the 'what are you using fleet for' step, and has a primaryBuyingSituation set by an ad. prefill the formData for this step. if(this.primaryBuyingSituation && _.isEmpty(this.formData['what-are-you-using-fleet-for'])){ - if(this.primaryBuyingSituation !== 'vm') { + // TODO: remove this once the form is updated to support the new primaryBuyingSituation values. + if(!['vm', 'security-misc', 'security-vm', 'it-major-mdm', 'it-gap-filler-mdm', 'it-misc'].includes(this.primaryBuyingSituation)) { this.formData['what-are-you-using-fleet-for'] = {primaryBuyingSituation: this.primaryBuyingSituation}; } }