As i mentioned above i have added the code below. 1691 is my form ID. The code is added in the form builder, right under the actual code for the form.
After i submit the form, i get the default sign up success message under the it, but the console log is not outputting anything.
<script>
mc4wp.forms.on(’1691.success’, function(form, data) {
// your code goes here
console.log(“Form with ID 1691 successfully submitted.”);
});
</script>