SOLVED

Using a hidden form field to send url of external page Marketo form is on/filled out from

Go to solution
SanfordWhiteman
Level 10 - Community Moderator

Re: Using a hidden form field to send url of external page Marketo form is on/filled out from

  1. No reason to truncate a String, you use a Textarea field.
  2. If you wanted just the origin + pathname, that’s literally
document.location.origin + document.location.pathname

All browsers have URL parsers built in and the split() you’re trying is not accurate.