Website: Add qualified to contact forms (#42259)
Closes: https://github.com/fleetdm/confidential/issues/14602 Changes: - Added qualified to website forms.
This commit is contained in:
Vendored
+1
@@ -50,6 +50,7 @@
|
||||
"Chart": true,
|
||||
"gtag": true,
|
||||
"ace": true,
|
||||
'qualified': true,
|
||||
// ...etc.
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ parasails.registerPage('basic-whitepaper', {
|
||||
firstName: {required: true},
|
||||
lastName: {required: true},
|
||||
},
|
||||
formDataToPrefillForLoggedInUsers: {},
|
||||
formErrors: {},
|
||||
syncing: false,
|
||||
cloudError: '',
|
||||
@@ -43,6 +44,14 @@ parasails.registerPage('basic-whitepaper', {
|
||||
// ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝
|
||||
methods: {
|
||||
submittedDownloadForm: async function () {
|
||||
if(typeof qualified !== 'undefined') {
|
||||
qualified('saveFormData',
|
||||
{
|
||||
email: this.formData.emailAddress,
|
||||
name: this.formData.firstName+' '+this.formData.lastName,
|
||||
});
|
||||
qualified('showFormExperience', 'experience-1772126772950');
|
||||
}
|
||||
let pdfDownloadLink = document.createElement('a');
|
||||
pdfDownloadLink.href = `/pdfs/${this.thisPage.meta.whitepaperFilename}`;
|
||||
pdfDownloadLink.download = this.thisPage.meta.whitepaperFilename;
|
||||
|
||||
+31
@@ -130,6 +130,16 @@ parasails.registerPage('contact', {
|
||||
if(typeof window.lintrk !== 'undefined') {
|
||||
window.lintrk('track', { conversion_id: 18587089 });// eslint-disable-line camelcase
|
||||
}
|
||||
if(typeof qualified !== 'undefined') {
|
||||
qualified('saveFormData',
|
||||
{
|
||||
email: this.formData.emailAddress,
|
||||
name: this.formData.firstName +' '+ this.formData.lastName,
|
||||
|
||||
});
|
||||
qualified('showFormExperience', 'experience-1772126772950');
|
||||
}
|
||||
|
||||
// Show the success message.
|
||||
this.cloudSuccess = true;
|
||||
|
||||
@@ -155,6 +165,17 @@ parasails.registerPage('contact', {
|
||||
'currency': 'USD'
|
||||
});
|
||||
}
|
||||
if(typeof qualified !== 'undefined') {
|
||||
qualified('saveFormData',
|
||||
{
|
||||
email: this.formData.emailAddress,
|
||||
name: this.formData.firstName +' '+ this.formData.lastName,
|
||||
company: this.formData.organization,
|
||||
how_many_hostsdevices_do_you_want_to_manage: this.formData.numberOfHosts,// eslint-disable-line camelcase
|
||||
what_will_you_be_using_fleet_for: this.formData.primaryBuyingSituation,// eslint-disable-line camelcase
|
||||
});
|
||||
qualified('showFormExperience', 'experience-1772126772950');
|
||||
}
|
||||
|
||||
this.goto(report.eventUrl);
|
||||
},
|
||||
@@ -173,6 +194,16 @@ parasails.registerPage('contact', {
|
||||
'currency': 'USD'
|
||||
});
|
||||
}
|
||||
if(typeof qualified !== 'undefined') {
|
||||
qualified('saveFormData',
|
||||
{
|
||||
email: this.formData.emailAddress,
|
||||
name: this.formData.firstName +' '+ this.formData.lastName,
|
||||
company: this.formData.organization,
|
||||
how_many_hostsdevices_do_you_want_to_manage: this.formData.numberOfHosts,// eslint-disable-line camelcase
|
||||
});
|
||||
qualified('showFormExperience', 'experience-1772126772950');
|
||||
}
|
||||
// Show the success message.
|
||||
this.cloudSuccess = true;
|
||||
},
|
||||
|
||||
@@ -114,6 +114,14 @@ parasails.registerPage('login', {
|
||||
if(window.lintrk !== undefined) {
|
||||
window.lintrk('track', { conversion_id: 18587097 });// eslint-disable-line camelcase
|
||||
}
|
||||
if(typeof window.qualified !== 'undefined') {
|
||||
qualified('saveFormData',
|
||||
{
|
||||
email: this.signupFormData.emailAddress,
|
||||
name: this.signupFormData.firstName +' '+ this.signupFormData.lastName,
|
||||
});
|
||||
qualified('showFormExperience', 'experience-1772126772950');
|
||||
}
|
||||
this.goto(this.pageToRedirectToAfterFormSubmission);
|
||||
},
|
||||
submittedLoginForm: async function() {
|
||||
|
||||
Reference in New Issue
Block a user