<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Passing form data to modal window...</title>
		<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window</link>
		<description>Gravity Support Forums Topic: Passing form data to modal window...</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:03:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/passing-form-data-to-modal-window" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Passing form data to modal window..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window#post-25741</link>
			<pubDate>Tue, 17 May 2011 16:00:36 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">25741@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Biaggo,&#60;/p&#62;
&#60;p&#62;There are a couple steps to setting this up.&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;On the form that you will be loading into the modal window, make sure you set the whichever field you want to populate the email into is set up to allow dynamic population and has 'email' as the parameter: &#60;a href=&#34;http://img.ounceofdev.com/a9Ah&#34; rel=&#34;nofollow&#34;&#62;http://img.ounceofdev.com/a9Ah&#60;/a&#62; &#60;/li&#62;
&#60;li&#62;Now we need a link that will trigger that modal window. The following snippet will add a hidden link AND the javascript necessary to append the email value from the launch form to the URL that will be used to populate the iframe opened in the modal window. This means it will take a URL like:&#60;br /&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;a href=&#34;http://localhost/about-2/&#34; rel=&#34;nofollow&#34;&#62;http://localhost/about-2/&#60;/a&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;...and update it with the email value like so:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;a href=&#34;http://localhost/about-2/?email=david@rocketgenius.com&#34; rel=&#34;nofollow&#34;&#62;http://localhost/about-2/?email=david@rocketgenius.com&#60;/a&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;/li&#62;
&#60;p&#62;You will see several spots that require you to customize the code based on IDs and values specific to your setup.&#60;/p&#62;
&#60;p&#62;let me know if you have any questions.&#60;/ol&#62;</description>
		</item>
		<item>
			<title>biagio111 on "Passing form data to modal window..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window#post-25624</link>
			<pubDate>Mon, 16 May 2011 15:48:46 +0000</pubDate>
			<dc:creator>biagio111</dc:creator>
			<guid isPermaLink="false">25624@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry David, it's on a MAMP local server at the moment, and in rough shape.  I will get it on a sandbox tonight.  In the mean time, I put together these screenshots just in case they help clear things up.&#60;/p&#62;
&#60;p&#62;1.  Here's the front page:&#60;br /&#62;
&#60;a href=&#34;http://jokeandbiagio.com/images/01frontPage.tiff&#34; rel=&#34;nofollow&#34;&#62;http://jokeandbiagio.com/images/01frontPage.tiff&#60;/a&#62;&#60;br /&#62;
2.  Right now, entering the email and hitting submit...&#60;br /&#62;
&#60;a href=&#34;http://jokeandbiagio.com/images/02formFilledIn.tiff&#34; rel=&#34;nofollow&#34;&#62;http://jokeandbiagio.com/images/02formFilledIn.tiff&#60;/a&#62;&#60;br /&#62;
3.  Passes it to another form as expected.&#60;br /&#62;
&#60;a href=&#34;http://jokeandbiagio.com/images/03emailPassesIn.tiff&#34; rel=&#34;nofollow&#34;&#62;http://jokeandbiagio.com/images/03emailPassesIn.tiff&#60;/a&#62;&#60;br /&#62;
4. But I'd like instead to pass it so that the form pops up in a modal window like this, with the email field passed in.&#60;br /&#62;
&#60;a href=&#34;http://jokeandbiagio.com/images/04modal.tiff&#34; rel=&#34;nofollow&#34;&#62;http://jokeandbiagio.com/images/04modal.tiff&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Trying to figure out how to pass that to the form and launch the modal window with the iframe to that form showing the passed in data.&#60;br /&#62;
Thanks,&#60;br /&#62;
Biagio
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Passing form data to modal window..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window#post-25604</link>
			<pubDate>Mon, 16 May 2011 12:11:32 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">25604@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you provide a link to your site so I can see how you have this set up?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>biagio111 on "Passing form data to modal window..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window#post-25603</link>
			<pubDate>Mon, 16 May 2011 12:10:20 +0000</pubDate>
			<dc:creator>biagio111</dc:creator>
			<guid isPermaLink="false">25603@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;br /&#62;
Thanks so much for the reply.  This is still a little over my head, and I'm not sure if I asked the question right, so let me rephrase:&#60;br /&#62;
On my home page, I have a newsletter signup where a person can just enter their email.&#60;br /&#62;
I want that email to pre-populate a form in a modal window, where they then have the option to also add first name and zip code.&#60;br /&#62;
So would I do something like:&#60;br /&#62;
&#60;a href=&#34;http://www.yourdomain.com/modal-popup-form-page/?to_email=&#34; rel=&#34;nofollow&#34;&#62;http://www.yourdomain.com/modal-popup-form-page/?to_email=&#60;/a&#62;{Email:1}&#60;br /&#62;
Thanks,&#60;br /&#62;
Biagio
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Passing form data to modal window..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window#post-25602</link>
			<pubDate>Mon, 16 May 2011 11:58:50 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">25602@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should be able to append your population parameter to the link href for the modal iframe. Here is the URL from the walk-through you shared:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.yourdomain.com/modal-popup-form-page/&#34; rel=&#34;nofollow&#34;&#62;http://www.yourdomain.com/modal-popup-form-page/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is that same URL with a sample population parameter:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.yourdomain.com/modal-popup-form-page/?to_email=david@rocketgenius.com&#34; rel=&#34;nofollow&#34;&#62;http://www.yourdomain.com/modal-popup-form-page/?to_email=david@rocketgenius.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Assuming you have a field on the form which loads in the modal setup to populate from this parameter, that should do the trick.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>biagio111 on "Passing form data to modal window..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-form-data-to-modal-window#post-25583</link>
			<pubDate>Mon, 16 May 2011 10:58:58 +0000</pubDate>
			<dc:creator>biagio111</dc:creator>
			<guid isPermaLink="false">25583@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I've done this fancybox tutorial and have everything working with the iframe:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/creating-a-modal-form-with-gravity-forms-and-fancybox/&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/creating-a-modal-form-with-gravity-forms-and-fancybox/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I need to figure out how to do one extra thing: I want to pass form data TO the modal window to pre-populate the email field.  I know how to do this using the Pass Field Data Via Query String settings when going from one page to another, but can't figure out how to pass that data to a modal window (or pass it to the plainpage.php form and get that to show in the modal window.)  Can you give me some advice, or point me in the right direction as to how I should be approaching this problem?&#60;br /&#62;
Thanks!&#60;br /&#62;
Biagio
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
