Skip to content

Instantly share code, notes, and snippets.

@entendu
Created March 18, 2016 19:58
Show Gist options
  • Select an option

  • Save entendu/5f197714003b343d549d to your computer and use it in GitHub Desktop.

Select an option

Save entendu/5f197714003b343d549d 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