Pardot Hidden Fields Compatible?
-
Hello Team!
I’m working on creating a popup for a button on a landing page and am running into some trouble. Our forms are built using Pardot, and in order to pass the hidden fields, I must add an additional script to the code that the plugin to this point has not been able to process.
For example, the HTML of the form is:
<iframe src=”https://go.quantivate.com/l/824713/2021-11-04/6tk2p” width=”100%” height=”800″ type=”text/html” frameborder=”0″ allowTransparency=”true” style=”border: 0″></iframe>BUT we normally use this additional script to pass the hidden fields along:
<noscript> <iframe src=" https://go.quantivate.com/l/824713/2021-11-04/6tk2p" width="100%" height=“875” type="text/html" frameborder="0" allowTransparency="true" style="border: 0"></iframe> </noscript> <div id="pardotform99web"></div> <script type="text/javascript"> var form = ' https://go.quantivate.com/l/824713/2021-11-04/6tk2p'; var params = window.location.search; var thisScript = document.getElementById("pardotform99web"); var iframe = document.createElement('iframe'); iframe.setAttribute('src', form + params); iframe.setAttribute('width', '100%'); iframe.setAttribute('height', 875); iframe.setAttribute('type', 'text/html'); iframe.setAttribute('frameborder', 0); iframe.setAttribute('allowTransparency', 'true'); iframe.style.border = '0'; thisScript.parentElement.replaceChild(iframe, thisScript); </script>Is anyone aware of how to pass this script along as intended?
Thanks for your help!
The topic ‘Pardot Hidden Fields Compatible?’ is closed to new replies.