<?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: Identify which page form is loaded from</title>
		<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from</link>
		<description>Gravity Support Forums Topic: Identify which page form is loaded from</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 11:09:12 +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/identify-which-page-form-is-loaded-from" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81156</link>
			<pubDate>Mon, 15 Oct 2012 12:56:12 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">81156@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Right on - glad you got it sorted out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81154</link>
			<pubDate>Mon, 15 Oct 2012 12:53:35 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81154@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok, in the end i just used &#60;/p&#62;
&#60;p&#62;&#38;lt;?php echo get_the_title(); ?&#38;gt; &#60;/p&#62;
&#60;p&#62;to pass the title of the page.&#60;/p&#62;
&#60;p&#62;problem solved. thanks a lot for the help :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81144</link>
			<pubDate>Mon, 15 Oct 2012 12:12:31 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81144@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The custom post type uses this code to get the title of the page:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?
php echo $event-&#38;gt;post_id
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;how do i incorporate this to: $thisid&#60;/p&#62;
&#60;p&#62;this seems to be just a php fundamental issue..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81142</link>
			<pubDate>Mon, 15 Oct 2012 12:02:42 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81142@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;update... i figured it out! but i used a hard-coded name :)&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;a href=&#34;http://www.domain.com/form-page?frompage=hard-coded&#34; rel=&#34;nofollow&#34;&#62;http://www.domain.com/form-page?frompage=hard-coded&#60;/a&#62;&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;so the only problem is to figure out each posts title which i thought would be the easier part using the code: &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
    global $post;
    $thisid = $post-&#38;gt;ID;
    echo &#38;quot;&#38;lt;!-- You are on page &#38;quot; . site_url() . &#38;quot;/?p=&#38;quot; . $thisid . &#38;quot; --&#38;gt;&#38;quot;;
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81141</link>
			<pubDate>Mon, 15 Oct 2012 11:55:39 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81141@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok, it's rather hard for me to work out.. i can't even get &#60;/p&#62;
&#60;p&#62;echo &#34;&#38;lt;!-- You are on page &#34; . site_url() . &#34;/?p=&#34; . $thisid . &#34; --&#38;gt;&#34;;&#60;/p&#62;
&#60;p&#62;to show on the page, these are custom post types too.. would it be possible to send you my login details to test?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81136</link>
			<pubDate>Mon, 15 Oct 2012 11:19:41 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81136@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i will try this out and let you know , thanks for the super prompt responses.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81133</link>
			<pubDate>Mon, 15 Oct 2012 11:12:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81133@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Based on your latest response, which was posted after my response, I think in your footer, where the link to the form is, you need to send a query string like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.domain.com/form-page/?frompage=$postid&#34; rel=&#34;nofollow&#34;&#62;http://www.domain.com/form-page/?frompage=$postid&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Where $postid is from my previous code.  Then in form 10, you need to have a hidden field called &#34;Source Page&#34; or &#34;Referring Page&#34; or something, check the box on the advanced tab to &#34;Allow Field to be Populated Dynamically&#34; and enter a parameter name of &#60;strong&#62;frompage&#60;/strong&#62; since that is what we are sending over from the single-footer.php.&#60;/p&#62;
&#60;p&#62;Can you put all those pieces together?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81132</link>
			<pubDate>Mon, 15 Oct 2012 11:08:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81132@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What if you captured the post ID in your single-footer.php, like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
global $post;
$thisid = $post-&#38;gt;ID;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then, in the shortcode or function (your launch code) where you include the form, pre-populate the page ID in a hidden field.  Would that work for you?&#60;/p&#62;
&#60;p&#62;I just tried it here:&#60;br /&#62;
&#60;a href=&#34;http://gravity.chrishajer.com/2012/08/22/map-to-fun/&#34; rel=&#34;nofollow&#34;&#62;http://gravity.chrishajer.com/2012/08/22/map-to-fun/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I added this code to my footer.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
    global $post;
    $thisid = $post-&#38;gt;ID;
    echo &#38;quot;&#38;lt;!-- You are on page &#38;quot; . site_url() . &#38;quot;/?p=&#38;quot; . $thisid . &#38;quot; --&#38;gt;&#38;quot;;
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you look in the source of that page, you will see the HTML comment:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[html]
&#38;lt;!-- You are on page http:// gravity. chrishajer. com/?p=870 --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This code will work fine on a single page (like where your single-footer.php is likely in use.) It would not return the correct value when used on an index page or archive page, due to the loop.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81129</link>
			<pubDate>Mon, 15 Oct 2012 10:47:18 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81129@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Form-page is just a plainpage template containing just &#60;code&#62;[gravityform id=10]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;i think this step is causing the problem, so maybe we need code to launch the form directly..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Andy on "Identify which page form is loaded from"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/identify-which-page-form-is-loaded-from#post-81127</link>
			<pubDate>Mon, 15 Oct 2012 10:45:03 +0000</pubDate>
			<dc:creator>Andy</dc:creator>
			<guid isPermaLink="false">81127@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes that looks like what I want but not sure how to pass that value using an iframe... i think it's impossible so i will need to revise my process..&#60;/p&#62;
&#60;p&#62;To make things clearer&#60;/p&#62;
&#60;p&#62;1. A file called single-footer.php is loaded onto multiple pages.&#60;/p&#62;
&#60;p&#62;2. The file single-footer.php contains the launch code for the form which is:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;http://www.domain.com/form-page&#38;quot; class=&#38;quot;colorboxiframe&#38;quot;&#38;gt;Form Page&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;3. The class 'colorboxiframe' makes the form load into a popup iframe.&#60;/p&#62;
&#60;p&#62;Problem, how to pass the name of the page it was launched from to the hidden field. Presumably the necessary code needs to go to single-footer.php
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
