3 Replies Latest reply on Jan 5, 2015 5:44 AM by Alok Ramsisaria

    Marketo Snippet Question

      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!

      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-->