It's MktoForms2.whenReady (period, not comma).
Hi Sanford. I made that switch and it still does not work. Any ideas?
Post a link to your page so I can see the JS console. Hard to know without that.
http://pages.hexarmor.com/rig-lizard-2021.html
Thanks Sanford
You guys are awesome! It worked. I have one more thing. Is there anyway to remove UTM parameters so it is a bare URL?
You can change document.location to document.location.toString.split('?')[0]
Here is what I have but it is not removing the UTM parameters:
<script>
MktoForms2.whenReady(function(form){
form.addHiddenFields({"Latest_Form_Form_Webpage__c":document.location.toString.split('?')[0]});
})
</script>
document.location.toString().split('?')[0]
or (my preference)
document.location.href.split('?')[0]
Kenny and Sanford thank you for your help! You guys are awesome!