When submitting native form data, you can exclude fields. There are reasons why you may want to exclude fields from being submitted to Lead Gen & CRM - for example, in the event that the field contains sensitive data or the field would cause the submission of the form to fail.
Administrators | ✓ | |
Company Managers | ||
Marketing Managers | ||
Sales Managers | ||
Salespersons | ||
Jr. Salespersons |
When collecting form data, there can be reasons to exclude a field from the submission to Lead Gen & CRM. The most common reasons for this are:
To edit your native form embed code to exclude passing specific fields, do the following:
var hidden = [];
code snippet directly below the var __ss_noform = __ss_noform || [];
code snippet in a text editor.hidden.push("field_name_1");
code snippet underneath the var hidden = [];
code snippet.field_name_1
with the name attribute of the field to be excluded.__ss_noform.push(['exclude', hidden]);
directly below the __ss_noform.push(['endpoint', 'xXxXxXxX-xXxX-xXxX-xXxX-xXxXxXxXxXxX']);
code snippet.<form>
tag or closing <body>
tag on the page where the native form lives.Excluded fields will not appear on the field mappings page for your form.
The following is an example embed code before edits.
<!-- Lead Gen & CRM Native Form -->
<script type="text/javascript">
var __ss_noform = __ss_noform || [];
__ss_noform.push(['baseURI', 'https://app-xXxXxXxXxX.marketingautomation.services/webforms/receivePostback/xXxXxXxXxX/']);
__ss_noform.push(['endpoint', 'xXxXxXxX-xXxX-xXxX-xXxX-xXxXxXxXxXxX']);
</script>
<script type="text/javascript" src="https://koi-3QKH0X1U88.marketingautomation.services/client/form.js?ver=1.1.1"></script>
The following is an example embed code after edits.
<!-- Lead Gen & CRM Native Form -->
<script type="text/javascript">
var __ss_noform = __ss_noform || [];
var hidden = [];
hidden.push("field_name_1");
hidden.push("field_name_2");
hidden.push("field_name_3");
__ss_noform.push(['baseURI', 'https://app-xXxXxXxXxX.marketingautomation.services/webforms/receivePostback/xXxXxXxXxX/']);
__ss_noform.push(['endpoint', 'xXxXxXxX-xXxX-xXxX-xXxX-xXxXxXxXxXxX']);
__ss_noform.push(['exclude', hidden]);
</script>
<script type="text/javascript" src="https://koi-3QKH0X1U88.marketingautomation.services/client/form.js?ver=1.1.1"></script>
Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center