Skip to content

Instantly share code, notes, and snippets.

@patrykkalinowski
Created October 11, 2016 22:36
Show Gist options
  • Save patrykkalinowski/e8f73f5302683b2c1eca439a8f01ff26 to your computer and use it in GitHub Desktop.
Save patrykkalinowski/e8f73f5302683b2c1eca439a8f01ff26 to your computer and use it in GitHub Desktop.
<div style="display: none;">
<script type="text/javascript" src="//your.mautic.domain/form/generate.js?id=1"></script>
</div>
<script>
jQuery("input#billing_email").change(function() {
var customer_email = jQuery("input#billing_email").val();
jQuery("input#mauticform_input_yourformname_email").val(customer_email)
jQuery("form#mauticform_yourformname").submit();
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment