Skip to content

Instantly share code, notes, and snippets.

@courtnEMAIL
Forked from entendu/mkto2.js
Created July 13, 2020 20:25
Show Gist options
  • Select an option

  • Save courtnEMAIL/c91ef76e088e68b1d24993cec7e1f56e to your computer and use it in GitHub Desktop.

Select an option

Save courtnEMAIL/c91ef76e088e68b1d24993cec7e1f56e to your computer and use it in GitHub Desktop.
Dyamically setting Marketo form field values
MktoForms2.loadForm("//app-XXXX.marketo.com", "XXX-XXX-XXX", formID, function(form) {
form.setValues({
// Update this with the field/value.
"my_field": "my value!"
}, function(k, v){var o={};o[k]=v;form.addHiddenFields(o)});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment