<?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: Help pre-populating a drop down</title>
		<link>https://legacy.forums.gravityhelp.com/topic/help-pre-populating-a-drop-down</link>
		<description>Gravity Support Forums Topic: Help pre-populating a drop down</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 21:25:49 +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/help-pre-populating-a-drop-down" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Help pre-populating a drop down"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-pre-populating-a-drop-down#post-183071</link>
			<pubDate>Sun, 24 Mar 2013 15:10:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">183071@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't know of any documentation for those fields types.  I did look through the source and found all these types though:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;select&#60;/li&#62;
&#60;li&#62;radio&#60;/li&#62;
&#60;li&#62;text&#60;/li&#62;
&#60;li&#62;calculation&#60;/li&#62;
&#60;li&#62;textbox&#60;/li&#62;
&#60;li&#62;website&#60;/li&#62;
&#60;li&#62;phone&#60;/li&#62;
&#60;li&#62;email&#60;/li&#62;
&#60;li&#62;list&#60;/li&#62;
&#60;li&#62;singleproduct&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;However, I'm not sure if that will help you. Can you post all the code you are using to populate the drop down and we'll take a look at it and see if we can spot a problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VFHwebdev on "Help pre-populating a drop down"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-pre-populating-a-drop-down#post-179847</link>
			<pubDate>Thu, 21 Mar 2013 16:26:40 +0000</pubDate>
			<dc:creator>VFHwebdev</dc:creator>
			<guid isPermaLink="false">179847@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, same project but different issues. &#60;/p&#62;
&#60;p&#62;In this case a custom field type with a class populate-posts, set to behave as a drop down isn't recognized by the conditional:&#60;/p&#62;
&#60;p&#62;if($field['type'] != 'select' &#124;&#124; strpos($field['cssClass'], 'populate-posts') === false)&#60;/p&#62;
&#60;p&#62;I'm guessing the problem is the field type. I was able to make it work by removing that part. &#60;/p&#62;
&#60;p&#62;if(strpos($field['cssClass'], 'populate-posts') === false)&#60;/p&#62;
&#60;p&#62;This is OK for me because there's only one field with a populate-posts class in my form. But it seems like custom field types set to be select boxes should behave like select boxes.&#60;/p&#62;
&#60;p&#62;And I can't find any documentation on the possible vaules for field type. Is a custom field a type of 'custom'?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Help pre-populating a drop down"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-pre-populating-a-drop-down#post-179783</link>
			<pubDate>Thu, 21 Mar 2013 15:07:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">179783@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is this topic related to your other one?&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/drop-down-of-custom-posts-stored-as-custom-field&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/drop-down-of-custom-posts-stored-as-custom-field&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Can we focus the support on one topic or the other, or are the issues unrelated?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VFHwebdev on "Help pre-populating a drop down"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-pre-populating-a-drop-down#post-176971</link>
			<pubDate>Tue, 19 Mar 2013 13:38:28 +0000</pubDate>
			<dc:creator>VFHwebdev</dc:creator>
			<guid isPermaLink="false">176971@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think I figured out what I was doing wrong. I was using a gravity form field that's a 'Post Custom Field' set to a field type of 'Drop Down'. &#60;/p&#62;
&#60;p&#62;This is apparently does function the same as a regular drop down and isn't caught by the conditional in the code sample:&#60;/p&#62;
&#60;p&#62;if($field['type'] != 'select' &#124;&#124; strpos($field['cssClass'], 'populate-posts') === false)&#60;/p&#62;
&#60;p&#62;So is there documentation somewhere of the possible values for $field['type'] ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VFHwebdev on "Help pre-populating a drop down"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/help-pre-populating-a-drop-down#post-176960</link>
			<pubDate>Tue, 19 Mar 2013 13:20:33 +0000</pubDate>
			<dc:creator>VFHwebdev</dc:creator>
			<guid isPermaLink="false">176960@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to follow this example from the documentation about how to pre-populate a drop down menu (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields)&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;It's not working and I can't figure out why. I've added the code example to my functions.php file and I've updated the code with the id of my form as instructed. &#60;/p&#62;
&#60;p&#62;It doesn't mention it directly in the documentation, but I assume I'm also supposed to add the class 'populate-posts' to the drop down item I want to pre-populate.&#60;/p&#62;
&#60;p&#62;I've done all this and it isn't working. Eventually I want to tweak the example a little, but first I'm just trying to reproduce it.&#60;/p&#62;
&#60;p&#62;Am I missing a step here?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
