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