<?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: Checking two categories in one hit</title>
		<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit</link>
		<description>Gravity Support Forums Topic: Checking two categories in one hit</description>
		<language>en-US</language>
		<pubDate>Fri, 03 Apr 2026 18:09:31 +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/checking-two-categories-in-one-hit" rel="self" type="application/rss+xml" />

		<item>
			<title>levinz on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22768</link>
			<pubDate>Fri, 08 Apr 2011 06:47:37 +0000</pubDate>
			<dc:creator>levinz</dc:creator>
			<guid isPermaLink="false">22768@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl! The info there was good and it gets a simplistic version of what I want off the ground right away.&#60;/p&#62;
&#60;p&#62;The ability to build increasingly complicated forms with little code knowledge is really cool.&#60;/p&#62;
&#60;p&#62;Gravity forms is a really nice piece of software.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22694</link>
			<pubDate>Thu, 07 Apr 2011 12:03:53 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">22694@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a forum thread that discusses populate a form field value with data from a post meta custom field:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/using-custom-fields-to-populate-hidden-fields&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/using-custom-fields-to-populate-hidden-fields&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>levinz on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22672</link>
			<pubDate>Thu, 07 Apr 2011 01:09:35 +0000</pubDate>
			<dc:creator>levinz</dc:creator>
			<guid isPermaLink="false">22672@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;external to the form I believe, based on my very simple stumbling understanding of php I think i need to call this custom function:&#60;/p&#62;
&#60;p&#62;function red_add_fields($id){&#60;br /&#62;
     $listing = stripslashes($_POST[&#34;listing&#34;]);&#60;/p&#62;
&#60;p&#62;which does this&#60;/p&#62;
&#60;p&#62;add_post_meta($id, 'listing', $listing);&#60;br /&#62;
I need to provide 'for rent' or 'for sale' as the variables.&#60;/p&#62;
&#60;p&#62;The problem here is that I want to do this on the basis of the users entry of 'for sale' or 'for rent' in a standard post category form field.&#60;/p&#62;
&#60;p&#62;I need both the standard and custom category populated for this form to be any use to me and I cant ask the user to enter for sale twice because that would just be stupid.&#60;/p&#62;
&#60;p&#62;Sorry if I'm still being confusing but I'm an old dog that has been running extremely successful sites with pure xhtml and css static pages for years and I have never ventured into php or even javascript for that matter, until now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22659</link>
			<pubDate>Wed, 06 Apr 2011 17:00:33 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">22659@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So would the value you want to populate the hidden field with come from a custom field on a post the form is being displayed on OR from another field value on the same form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>levinz on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22658</link>
			<pubDate>Wed, 06 Apr 2011 16:35:07 +0000</pubDate>
			<dc:creator>levinz</dc:creator>
			<guid isPermaLink="false">22658@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok, let me rephrase. I want to dynamically populate a hidden post category field from a custom field directly preceding it in the same form. I want to replicate the answer in the hidden field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22625</link>
			<pubDate>Wed, 06 Apr 2011 11:26:01 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">22625@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not entirely clear what you are trying to accomplish.  It is possible to dynamically populate fields using either PHP or passing data to it via the query string. But i'm not entirely clear on what you want to populate the field value with, based on data from the previous entry as in a form entry or as in a Post that was previously created?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>levinz on "Checking two categories in one hit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/checking-two-categories-in-one-hit#post-22609</link>
			<pubDate>Wed, 06 Apr 2011 07:24:08 +0000</pubDate>
			<dc:creator>levinz</dc:creator>
			<guid isPermaLink="false">22609@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm building a form for a theme that uses both custom fields as categories and standard category listings.&#60;br /&#62;
The custom fields are used to generate pre formatted posts. The only problem here is that  there is no dynamic relationship between the two. So for search functions within the theme there is a necessary requirement to create standard categories to enter the posts into as well.&#60;/p&#62;
&#60;p&#62;The gravity form does a wonderful job of picking up the custom fields and populating the pre formatted posts very nicely and I commend you guys on this intuitive piece of software.&#60;/p&#62;
&#60;p&#62;It also does a great job at populating ordinary posts in their categories, BUT I'm wanting do know if there is any way it can do both at once? Without asking users to enter the information twice.&#60;/p&#62;
&#60;p&#62;How would I go about say dynamically populating a hidden field from the previous entry?&#60;/p&#62;
&#60;p&#62;i.e.&#60;/p&#62;
&#60;p&#62;(Custom field multi choice) for sale, or for rent&#60;/p&#62;
&#60;p&#62;(Post category, admin only) dynamically populating the field based on previous entry being either for sale or for rent.&#60;/p&#62;
&#60;p&#62;Is this possible?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
