<?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: Inserting a form in an Overlay</title>
		<link>https://legacy.forums.gravityhelp.com/topic/inserting-a-form-in-an-overlay</link>
		<description>Gravity Support Forums Topic: Inserting a form in an Overlay</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:58:20 +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/inserting-a-form-in-an-overlay" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Inserting a form in an Overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inserting-a-form-in-an-overlay#post-36174</link>
			<pubDate>Sun, 25 Sep 2011 11:20:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36174@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great.  Glad you got it working.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Leslie on "Inserting a form in an Overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inserting-a-form-in-an-overlay#post-36171</link>
			<pubDate>Sun, 25 Sep 2011 10:16:13 +0000</pubDate>
			<dc:creator>Leslie</dc:creator>
			<guid isPermaLink="false">36171@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's what I was looking for...thanks very much.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Inserting a form in an Overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inserting-a-form-in-an-overlay#post-36165</link>
			<pubDate>Sun, 25 Sep 2011 00:29:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36165@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It's also possible you could just replace this line:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
insert_cform(2);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
gravity_form(ID, true, true, false, false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And things might work, depending on what that &#60;strong&#62;is_tellafriend&#60;/strong&#62; function looks like.  There are a couple different ways to approach it and you might have to experiment a little bit.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Inserting a form in an Overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inserting-a-form-in-an-overlay#post-36164</link>
			<pubDate>Sun, 25 Sep 2011 00:27:06 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">36164@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You will want to remove the call to the function that was embedding the cform and replace it with the function call to the Gravity Form.&#60;/p&#62;
&#60;p&#62;The function to embed a form manually is documented here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I would start very simply with something like this and see what it looks like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;div id=&#38;quot;emailoverlay&#38;quot; class=&#38;quot;overlay largeoverlay&#38;quot;&#38;gt;
&#38;lt;?php gravity_form(ID, true, true, false, false); ?&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will need to change &#60;strong&#62;ID&#60;/strong&#62; there to the ID of your tell a friend Gravity Form.  The form title and description from your Gravity Form settings will be displayed here.  You may need to do some CSS work to get it looking the same.&#60;/p&#62;
&#60;p&#62;Also, I'm not sure when the form should show up, or how the form ID is being used in the message that is sent to a friend.  But using the function call is a start.&#60;/p&#62;
&#60;p&#62;In addition, since you are embedding the form with the function call, you will need to enqueue the CSS and scripts manually.  See here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Leslie on "Inserting a form in an Overlay"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/inserting-a-form-in-an-overlay#post-36154</link>
			<pubDate>Sat, 24 Sep 2011 18:43:32 +0000</pubDate>
			<dc:creator>Leslie</dc:creator>
			<guid isPermaLink="false">36154@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I have a 'contact' Gravity form inserted and functioning perfectly, but it was inserted into a page/post.  I have a 'tell-a-friend' form created and need to have it pull up when I click on an image (link) that tells you to email a friend.  The problem is, this 'email a friend' link opens up an overlay that is coded with a cform II.  Cforms (originally coded from the purchased theme) just isn't working for me and I want to remove it and insert the Gravity form. &#60;/p&#62;
&#60;p&#62;So...the issue is that I know nothing about PHP, etc., but I do know what file the cforms is pulling from, I just don't know what code/function to use to make it pull the correct Gravity form.  It's nothing that I can insert into a post or page.  The code below shows how it's currently pulling the cforms plugin:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;emailoverlay&#38;quot; class=&#38;quot;overlay largeoverlay&#38;quot;&#38;gt;
		&#38;lt;h2&#38;gt;&#38;lt;?php echo $OPTION[&#38;#39;wps_email_a_friend_title&#38;#39;]; ?&#38;gt;&#38;lt;/h2&#38;gt;
		&#38;lt;p&#38;gt;&#38;lt;?php echo $OPTION[&#38;#39;wps_email_a_friend_text&#38;#39;]; ?&#38;gt;&#38;lt;/p&#38;gt;
		&#38;lt;?php
		if(function_exists(&#38;#39;is_tellafriend&#38;#39;)){
			if(is_tellafriend( $post-&#38;gt;ID )) insert_cform(2);
		} else {
			echo &#38;quot;
			&#38;lt;p&#38;gt;&#38;lt;/p&#38;gt;
			&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any suggestions?&#60;/p&#62;
&#60;p&#62;Thanks -
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
