HTML Form Code Example

Below is an example form that includes the placeholder id="consentText"", id="consentTextIPAddress", as well as the code snippet.

	<link href="" rel="stylesheet" />
	<script src=""></script>
	<script src=""></script>
<form id="smallform">
	<!-- consentTextIPAddress id for field where the IP address of the user will be stored -->
	<input type="hidden" name="IPAddress" id="consentTextIPAddress" />
	    <span class="field">
		<input type="text" name="FirstName" id="FirstName" placeholder="First Name" />
	    <span class="field">
		<input type="text" name="LastName" id="LastName" placeholder="Last Name" />
	    <span class="field">
		<input type="text" name="Email" id="Email" placeholder="Email" />
	    <span class="field">
		<input type="text" name="Phone" id="Phone" placeholder="Phone Number" />
	    <span class="field">
		<input type="text" name="Zip" id="Zip" placeholder="Zip Code" />
    <!-- consentText id for placeholder where consent text will be rendered -->
	<p class="terms" id="consentText">
	    <input type="checkbox" />
	<p class="actions">
	<a class="btn-submit" onclick="SubmitForm();">Contact Me</a>

<!-- LeadExec Consent Provider Script Block -->
<script type="text/javascript">
	const consentKey = '[CONSENT_API_KEY]';
	const consentTextAppendMode = 'default';
	const consentTextLoadOnPageLoad = true;
	const consentTextElementName = 'consentText';
	const consentTextIPElementName = 'consentTextIPAddress';
	(function () {
	    var consentJs = document.createElement('script'); consentJs.type = 'text/javascript'; consentJs.async = true;
	    consentJs.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '';
	    var consentS = document.getElementsByTagName('script')[0]; consentS.parentNode.insertBefore(consentJs, consentS);