Hi, We're attempting to make a form submission in the background. I've created the embedded code but our IT staff keeps getting an error. Below is there feedback. I am not a coder but would greatly appreciate any feedback that I can pass along to our developers.. Thanks! -- loadForm method is returning the object with all forms, but “var myForm = MktoForms2.allForms()[0];” is returning “undefined”. <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> </head> <script src="https://app-sj04.marketo.com/js/forms2/js/forms2.min.js"></script> <html> <form id="mktoForm_1255"> Just Checking </form> </html> <script> var forms = MktoForms2.loadForm("https//app-sj04.marketo.com", "903-EIZ-879", 1255); console.log(forms); var myForm = MktoForms2.allForms()[0]; console.log(myForm); myForm.addHiddenFields({ //These are the values which will be submitted to Marketo "Email":"test@example.com", "FirstName":"John", "LastName":"Doe" }); myForm.submit(); //mktoForm_ </script>
... View more