AnsweredAssumed Answered

Forms 2.0 - Raw Form Callback

Question asked by Parker Goran on Nov 6, 2015
Latest reply on Nov 11, 2015 by Sanford Whiteman

Hi all - I'm curious how I can set a callback on a custom form. I followed this guid: Re: Forms 2.0 - raw form html embedding issues to create a form using the below format. I would like to add a callback function so that when submitted (preferably after a successful submit), the page does not refresh, rather displays a custom message. Would I have to use the MktoForms2 functions - it is essentially a custom version of the .loadForm(baseUrl, munchkinId, formId [,callback]). Thanks in advance.

 

<form id="mktoForm_1139" class="mktoForm" novalidate="novalidate" method="post" action="http://pages.CNAME.com/index.php/leadCapture/save">

 

     <!-- form fields here -->

 

     <input type="hidden" name="formid" class="mktoField form-control mktoField form-controlDescriptor" value="value">

     <input type="hidden" name="munchkinId" class="mktoField form-control mktoField form-controlDescriptor" value="value">

     <div class="text-center"><button type="submit" class="btn btn-default">Sign Up</button></div>

</form>

Outcomes