<?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: Using Hooks to Dynamically populate single line text</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-hooks-to-dynamically-populate-single-line-text</link>
		<description>Gravity Support Forums Topic: Using Hooks to Dynamically populate single line text</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:29:27 +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/using-hooks-to-dynamically-populate-single-line-text" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Using Hooks to Dynamically populate single line text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-hooks-to-dynamically-populate-single-line-text#post-32981</link>
			<pubDate>Thu, 18 Aug 2011 18:51:21 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">32981@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If thats the name of your variable, yes.  Or you can create a new variable, set it's value to the variable value you want and return that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mrnic3guy on "Using Hooks to Dynamically populate single line text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-hooks-to-dynamically-populate-single-line-text#post-32978</link>
			<pubDate>Thu, 18 Aug 2011 18:43:25 +0000</pubDate>
			<dc:creator>mrnic3guy</dc:creator>
			<guid isPermaLink="false">32978@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you!&#60;/p&#62;
&#60;p&#62;I guess my question is now this: what would be my return value?  $page_title?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Using Hooks to Dynamically populate single line text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-hooks-to-dynamically-populate-single-line-text#post-32972</link>
			<pubDate>Thu, 18 Aug 2011 18:23:09 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">32972@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can't use a variable in the shortcode.  It's not going to get replaced.  Values passed in the shortcode would have to be static.&#60;/p&#62;
&#60;p&#62;If you want to dynamically populate a field I would suggest using PHP.  Here is a tutorial:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mrnic3guy on "Using Hooks to Dynamically populate single line text"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-hooks-to-dynamically-populate-single-line-text#post-32964</link>
			<pubDate>Thu, 18 Aug 2011 18:15:23 +0000</pubDate>
			<dc:creator>mrnic3guy</dc:creator>
			<guid isPermaLink="false">32964@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi all.&#60;/p&#62;
&#60;p&#62;I have a question that needs answering.  I've looked through the forums and documentation but haven't found exactly what it is I'm looking for.&#60;/p&#62;
&#60;p&#62;I'm trying to populate a &#34;subject&#34; field with the wordpress page title.  In this case it's an address.  &#60;/p&#62;
&#60;p&#62;I've tried several things including&#60;br /&#62;
&#60;code&#62;[gravityform id=3 name=Contact title=true description=true  field_values=&#38;#39;subject=$page_title&#38;#39;]&#60;/code&#62;&#60;br /&#62;
where $page_title is what I want to be populating the subject line in the contact form.  &#60;/p&#62;
&#60;p&#62;So my question is, what do I need to replace $page_title with to get the actual title of the specific page a user is on?  Ideally I don't want to have to create hundreds of contact forms for every specific page.&#60;/p&#62;
&#60;p&#62;Is this even possible?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
