Solved
iFrame - pull Parent URL into Hidden form field
I've identified some javascript which allows me to pull the full URL of the parent page into a hidden form field in an iFrame. The probelm is, this code only works on Forms 1.0.
Can anyone suggest tweaks to this code so that it will work with Forms 2.0?
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
Can anyone suggest tweaks to this code so that it will work with Forms 2.0?
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!-- Keep your jQuery up to date -->
<script>
$(function(){
var url = (window.location != window.parent.location) ? document.referrer: document.location;
$("#LeadSource").val(url);
})
</script>