Lead Gen & CRM
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Adding Manual Submission to Native Forms

Article: 000050412
Updated: July 18, 2024

Add a manual submission option to your native form in the event that the auto-submit action doesn't fire

There are some cases in which a form might not fire a submit action for the Lead Gen & CRM Native Form code to capture, or may fire it in a way that the code does not properly recognize. Some examples include using Ajax to submit forms on your website, certain validation scripts that need to run before submitting to Lead Gen & CRM, or your submissions to Lead Gen & CRM are being interrupted by a page change.

This article will detail how to add a manual submission option to your native form tracking script in the event that this happens.


Article Contents

 
 
Users:
Administrators 
Company Managers  
Marketing Managers  
Sales Managers  
Salespersons  
Jr. Salespersons  


Adding Manual Submission to Native Forms

Manual submission is required for native forms with submit buttons that are wrapped in a <button> tag.

To add manual submission to native forms, do the following:

  1. Add an ID to the native form that will be tracked. The following is an example of a native form ID.

    formID.png
     
  2. Create a native form in Lead Gen & CRM.
  3. Copy the form code and place in a text editor, such as Atom or Brackets.
  4. Change 'endpoint' to 'form' in the form's code.
  5. Add a parameter for the form ID directly after 'form' in the form's code.

    The following is example code with 'myform' as the form ID and the endpoint value following it:
     <script type="text/javascript">
        var __ss_noform = __ss_noform || [];
        __ss_noform.push(['baseURI', 'https://app-2GCK1V3Z33.marketingautomation.services/webforms/receivePostback/WxviTCKbWEDiVzA/']);
        __ss_noform.push(['form', 'myform', '1234io3l-c442-8c9e-1234-9933b6n1gi6s']);
        __ss_noform.push(['submitType', 'manual']);
        </script>
        <script type="text/javascipt" src="https://koi-2GCK1V3Z33.marketingautomation.services/client/noform.js?ver=1.24"></script>
  6. Add a line consisting of __ss_noform.push(['submitType', 'manual']); before the first closing </script> tag in the form's code.
  7. Add the following line to the code that handles the submission of your form once it is filled out: 
    __ss_noform.push(['submit', null, '1234io3l-c442-8c9e-1234-9933b6n1gi6s']);
    
    As this line of code triggers the submission to Lead Gen & CRM, be aware that this code should not be run on page load, but instead triggered as part of your form submission process. 


Additional Considerations

The use of 'null' in the code will work in most situations, but if something needs to happen only after the code has finished submitting the form, this parameter can instead be a callback function.

__ss_noform.push(['submit', function () {window.location = 'http://mysite.com/thank-you';}, '1234io31-b123-8c8e-1234-9999a3n8g21b']);


When using manual submission code, adhere to the following:

  • The supplied code must be called after the script above when submitting the form.
  • The final string in the supplied code must be the same string in line three of the native form script.
  • The supplied code needs to be run from within your own form submission code, and should not be run on page load.
  • The supplied code should be run once any validation for the form has passed, but before the form is removed from the page. 
Note: Constant Contact offers Professional Services to assist with custom coding.
 


Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center