Created
October 7, 2014 20:23
-
-
Save activeprospect-support/1b277fc12d82b8fc9204 to your computer and use it in GitHub Desktop.
TF - How to set up the JavaScript in a form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function() { | |
var field = 'xxTrustedFormCertUrl'; | |
var provideReferrer = false; | |
var tf = document.createElement('script'); | |
tf.type = 'text/javascript'; tf.async = true; | |
tf.src = 'http' + ('https:' == document.location.protocol ? 's' : '') + | |
'://api.trustedform.com/trustedform.js?provide_referrer=' + escape(provideReferrer) + '&field=' + escape(field) + '&l='+new Date().getTime()+Math.random(); | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tf, s); } | |
)(); | |
</script> | |
<noscript> | |
<img src="http://api.trustedform.com/ns.gif" /> | |
</noscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment