Skip to content

Instantly share code, notes, and snippets.

@ejonasson
Created August 2, 2019 17:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ejonasson/52dbdb4c17ddd00fa800efe40f2af10c to your computer and use it in GitHub Desktop.
Save ejonasson/52dbdb4c17ddd00fa800efe40f2af10c to your computer and use it in GitHub Desktop.
// REPLACE THIS WITH THE CAMPAIGN'S ID
var campaignId = 'XXXXX';
// DO NOT EDIT BELOW THIS LINE
document.addEventListener('tp.Main.EventListener.Ready', function () {
var event = new CustomEvent('tp.Custom.Submit', {
bubbles : true,
cancelable : true,
detail : {
widgetId: campaignId,
fields: []
}
});
document.dispatchEvent(event);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment