AnsweredAssumed Answered

Marketo Snippet Question

Question asked by 28845a7a67506c12f99d0f2e7fdb17c484e5c0fc on Dec 31, 2014
Latest reply on Jan 5, 2015 by Alok Ramsisaria
I have a snippet that has a form. I would like to able to call a js function onsubmit and when I add it the snippet editor just ignores this.
How do I make this work? Please help!
thanks!
Anand

I have the js file that has the validate_form fuction and form_fields defined above the form definition as shown below. I am trying to add the onsubmit piece but it keeps ignoring it..

<div id="my-form"><form action="https://foobar.com/formsubmit" method="post" onsubmit="return validate_form(form_fields)"
....
<!--form--> <!--start_trial-->

 

Outcomes