-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MWPW-160954 Marketo Multi-step #3671
base: stage
Are you sure you want to change the base?
Conversation
This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR. |
libs/blocks/marketo/marketo-multi.js
Outdated
formEl.querySelectorAll('.mktoFormRowTop').forEach((row) => { | ||
const rowAttr = row.getAttribute('data-mktofield') || row.getAttribute('data-mkto_vis_src'); | ||
const step = VALIDATION_STEP[rowAttr] ? Math.min(VALIDATION_STEP[rowAttr], totalSteps) : 1; | ||
row.setAttribute('data-validate', step); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super nit, but pulling this out into a named function may add some readability.
libs/blocks/marketo/marketo-multi.js
Outdated
const VALIDATION_STEP = { | ||
name: '2', | ||
phone: '2', | ||
mktoFormsJobTitle: '2', | ||
mktoFormsFunctionalArea: '2', | ||
company: '3', | ||
state: '3', | ||
postcode: '3', | ||
mktoFormsPrimaryProductInterest: '3', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we eventually want this configuration to be set up elsewhere or by authors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are multiple directions on how this would be configured, but right now this feature is more of a test.
We're not sure what the authoring would look like and it may by configured by the template definitions.
4459de0
to
39a5d7c
Compare
Reminder to set the |
72a9406
to
2e78390
Compare
2e78390
to
df6b5b1
Compare
Resolves: MWPW-160954
Test URLs:
BACOM URLs: