Skip to content

Instantly share code, notes, and snippets.

// 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: []