Support » Plugin: Pardot » Passing parameters to the iframe

  • First of all, excellent job. This pluggin made me move my entire website to WordPress. We have many forms on the new website and some of them are already increasing conversion by 50%.

    Since the forms are placed in an iframe, I am having cross-domain scripting errors when I try to grab some data from the main page and passing it to the form. What I want to do is to pass the product name to the form when the prospect fills the contact sales form on the page. I want to avoid asking the prospect selecting the product when the form is already on a product page. Another option will be to pass a parameter with in the URL of the iframe like adding ?product=<product_name>.

    Maybe the next version can allow passing info from the_post() to the iframe: post title, post permalink, etc.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Cliff Seal


    Thanks, I’m glad to hear it’s been helpful!

    I’m definitely looking into the best option for what you’ve requested, so stay tuned! In the meantime, embedding the iframe directly (or using an iframe shortcode plugin, so that you can be in ‘Visual’ mode) would allow you to go ahead and accomplish this. Let me know if you have any questions, and I’ll follow up when there’s a feature update.

    Thanks again!

    Plugin Author Cliff Seal


    As a follow-up, I helped another user this week set up shortcodes that pull info from $post and return them so that they could do things like append the post title to the iframe code. For example:

    <iframe src="[post_title] width="100%" height="250"></iframe>

    Still looking into the best solutions for ‘advanced’ users like yourself, but the above is another way to handle it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Passing parameters to the iframe’ is closed to new replies.