mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: Update questionnaire pre-filling. (#20953)
Changes: - Updated the /start questionnaire to not prefill the "What will you use Fleet for?" question if the user has a primaryBuyingSituation set to `vm`
This commit is contained in:
parent
2ccc0f79e7
commit
81af71b80a
1 changed files with 3 additions and 1 deletions
4
website/assets/js/pages/start.page.js
vendored
4
website/assets/js/pages/start.page.js
vendored
|
|
@ -85,7 +85,9 @@ 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'])){
|
||||
this.formData['what-are-you-using-fleet-for'] = {primaryBuyingSituation: this.primaryBuyingSituation};
|
||||
if(this.primaryBuyingSituation !== 'vm') {
|
||||
this.formData['what-are-you-using-fleet-for'] = {primaryBuyingSituation: this.primaryBuyingSituation};
|
||||
}
|
||||
}
|
||||
if(window.location.hash) {
|
||||
if(typeof analytics !== 'undefined') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue