But I want to know how to actually find this in pardot, and where this would be added when building new forms/landing pages", "datePublished": "2021-05-06T15:18:03.000Z", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000B4vxJSAR" }, "image": "https://trailblazers.salesforce.com/ncsphoto/AGHmNbGCib7JEKNZsgq6NvLZjqDjlc6V9PSg0BTDGi2EsVGm6jQWQyhNpbTf66Hc2N32qqn9u-8QR5OEP-66nA%3D%3D", "about": [], "publisher": { "@type": "Organization", "name": "Trailhead", "url": "https://trailhead.salesforce.com", "@id": "https://trailhead.salesforce.com#Organization" }, "author": { "@type": "Person", "name": "Michael MacKenzie", "url": "https://trailblazers.salesforce.com/profileView?u=0054S000001Ce58QAC", "agentInteractionStatistic": { "@type": "InteractionCounter", "interactionType": "https://schema.org/WriteAction", "userInteractionCount": 0 }, "affiliation": { "@type": "Organization", "name": "Juno College of Technology" } }, "interactionStatistic": { "@type": "InteractionCounter", "interactionType": "https://schema.org/LikeAction", "userInteractionCount": 0 } } Skip to main content

Hey, I'm trying to see where I can find how hidden fields on forms are linked to the html of that displays on our web page? I've seen this: 

 

<script type="text/javascript">

// Parse the URL

function getParameterByName(name) {

    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");

    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),

    results = regex.exec(location.search);

    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));

}

 

// Give the URL parameters variable names

var source = getParameterByName('utm_source');

var medium = getParameterByName('utm_medium');

var campaign = getParameterByName('utm_campaign');

 

// Put the variable names into the hidden fields in the form. selector should be "p.YOURFIELDNAME input"

document.querySelector("p.last_touch_source input").value = source;

document.querySelector("p.last_touch_medium input").value = medium;

document.querySelector("p.last_touch_campaign input").value = campaign;

</script>

 

But I want to know how to actually find this in pardot, and where this would be added when building new forms/landing pages

0/9000