Skip to content

Instantly share code, notes, and snippets.

@nathan-appere
Last active June 28, 2016 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathan-appere/404d0c1a65dfebe8da7d7be01bab3347 to your computer and use it in GitHub Desktop.
Save nathan-appere/404d0c1a65dfebe8da7d7be01bab3347 to your computer and use it in GitHub Desktop.
onFormSubmit issue
<script>
hbspt.forms.create({
portalId: '453289',
formId: 'faafbc57-6c2f-49a6-87ef-02c8653fdb30',
submitButtonClass: 'submitbutton',
redirectUrl: 'https://www.localhost.twenty20.com/pricing?roadblock=skip',
// This is never called.
onFormSubmit: function() { console.log("---------- onFormSubmit"); debugger; },
// This one works find.
onFormReady: function() { console.log("---------- onFormReady"); debugger; }
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment