<?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: Pre-filling field with post category?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pre-filling-field-with-post-category</link>
		<description>Gravity Support Forums Topic: Pre-filling field with post category?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:38:33 +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/pre-filling-field-with-post-category" rel="self" type="application/rss+xml" />

		<item>
			<title>gravityfc on "Pre-filling field with post category?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-filling-field-with-post-category#post-64637</link>
			<pubDate>Tue, 03 Jul 2012 18:35:10 +0000</pubDate>
			<dc:creator>gravityfc</dc:creator>
			<guid isPermaLink="false">64637@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This worked perfectly. Thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Pre-filling field with post category?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-filling-field-with-post-category#post-64608</link>
			<pubDate>Tue, 03 Jul 2012 17:07:47 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">64608@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi gravityfc,&#60;/p&#62;
&#60;p&#62;Paste this in your theme's functions.php file.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/4195261&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4195261&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now on the hidden field you'd like to populate the category for, add &#34;post_category&#34; as the dynamic population parameter: &#60;a href=&#34;http://grab.by/exA0&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/exA0&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now you can use the GF conditional shortcode to create different messages based on which category was submitted in this hidden field: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gravityfc on "Pre-filling field with post category?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-filling-field-with-post-category#post-64593</link>
			<pubDate>Tue, 03 Jul 2012 15:24:20 +0000</pubDate>
			<dc:creator>gravityfc</dc:creator>
			<guid isPermaLink="false">64593@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Our gravity form is embedded inside all of our WP posts. Is it possible to have the category of each particular post passed automatically into a hidden field in the gravity form?&#60;/p&#62;
&#60;p&#62;I've tried using the &#34;Post Fields - Category&#34; field, but it does not seem possible to get that entry to be auto-filled. (Instead, I can only get it to allow the user to manually select a category). &#60;/p&#62;
&#60;p&#62;I've also tried using a &#34;Standard Fields - Single Line Text&#34; field with a merge tag, but I do not see an option for categories in the &#34;Insert Merge Tag&#34; drop down admin menu. (Only &#34;Client IP Address&#34; etc.)&#60;/p&#62;
&#60;p&#62;The goal of the above question is to then allow us to use conditional logic to display different confirmation messages to the user based upon which category the post they were reading was in. i.e., if the gravity form was embedded in a post in Category A, then we automatically display Confirmation Message A, if the form was embedded in a post in Category B, then we automatically display Confirmation Message B, etc.&#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
