Passing parameters to the iframe (3 posts)

  1. alphafer
    Posted 3 years ago #

    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

  2. Cliff Seal
    Plugin Author

    Posted 3 years ago #

    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!

  3. Cliff Seal
    Plugin Author

    Posted 3 years ago #

    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="http://my.form.com/12345/?title=[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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pardot
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.