<?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: Why gform_field_value works for a text field but not for a dropdown?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/why-gform_field_value-works-for-a-text-field-but-not-for-a-dropdown</link>
		<description>Gravity Support Forums Topic: Why gform_field_value works for a text field but not for a dropdown?</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 12:53:15 +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/why-gform_field_value-works-for-a-text-field-but-not-for-a-dropdown" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Why gform_field_value works for a text field but not for a dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/why-gform_field_value-works-for-a-text-field-but-not-for-a-dropdown#post-113851</link>
			<pubDate>Fri, 04 Jan 2013 09:54:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">113851@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I confirmed with the developers: you can use gform_field_value_$parameter_name to pre-select an existing choice, but to populate a drop down, you need to use gform_pre_render, as you have done here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brasofilo on "Why gform_field_value works for a text field but not for a dropdown?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/why-gform_field_value-works-for-a-text-field-but-not-for-a-dropdown#post-100384</link>
			<pubDate>Sat, 08 Dec 2012 19:57:06 +0000</pubDate>
			<dc:creator>brasofilo</dc:creator>
			<guid isPermaLink="false">100384@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Both fields are allowed to be populated dynamically and have its parameter name.&#60;/p&#62;
&#60;p&#62;This works:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;quot;gform_field_value_text_field&#38;quot;, &#38;quot;populate_text_field&#38;quot; );
function populate_text_field( $value )
{
   return &#38;quot;Dynamic populated&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But this doesn't:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;quot;gform_field_value_dropdown_field&#38;quot;, &#38;quot;populate_dropdown_field&#38;quot; );
function populate_dropdown_field( $value )
{
	$value = array(
		array( &#38;#39;text&#38;#39;=&#38;gt;&#38;#39;Foo 1&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt;&#38;#39;foo1&#38;#39;, &#38;#39;isSelected&#38;#39;=&#38;gt;false, &#38;#39;price&#38;#39;=&#38;gt;&#38;#39;&#38;#39; ),
		array( &#38;#39;text&#38;#39;=&#38;gt;&#38;#39;Foo 2&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt;&#38;#39;foo2&#38;#39;, &#38;#39;isSelected&#38;#39;=&#38;gt;false, &#38;#39;price&#38;#39;=&#38;gt;&#38;#39;&#38;#39; ),
		array( &#38;#39;text&#38;#39;=&#38;gt;&#38;#39;Foo 3&#38;#39;, &#38;#39;value&#38;#39;=&#38;gt;&#38;#39;foo3&#38;#39;, &#38;#39;isSelected&#38;#39;=&#38;gt;true , &#38;#39;price&#38;#39;=&#38;gt;&#38;#39;&#38;#39; )
	);
   return $value;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I know I can use gform_pre_render, and that's how I'm solving this.&#60;br /&#62;
But _field_value is much more easy.&#60;/p&#62;
&#60;p&#62;I really did a research here in the forum but couldn't find an answer..&#60;br /&#62;
Am I missing something?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
