SOLVED

Original External Referrer URL Javascript

Go to solution
George_Hoffman
Level 3

I'm trying to add Javascript that pulls Original External Referrer Url into a hidden form field. This is the Javascript that I will be using (from this discussion😞

  1. <script> 
  2. MktoForms2.whenReady(function(form){ 
  3.   form.setValues({ 
  4.     OriginalExternalReferrer : document.referrer 
  5.   }); 
  6. }); 
  7. </script> 

Do I need to place this script on the landing page or in the form somewhere? If on the form, where do I place this?

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

Yes, if that's the real field name, then the field name in addHiddenFields() needs to be Original_External_Referrer__c. 

View solution in original post

11 REPLIES 11