<?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: Dynamic population - parameter outputs outside the form, but not in form fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields</link>
		<description>Gravity Support Forums Topic: Dynamic population - parameter outputs outside the form, but not in form fields</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:40:48 +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/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Ketiga on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64753</link>
			<pubDate>Wed, 04 Jul 2012 11:51:39 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64753@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I will take a look and let you know the results.&#60;/p&#62;
&#60;p&#62;Thanks for the help so far!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64752</link>
			<pubDate>Wed, 04 Jul 2012 11:48:51 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64752@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could look into the following hook that fires during page changes:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_paging&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_paging&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then you could grab the value from the previous page, do your query, and push it to the form field in the second page. &#60;/p&#62;
&#60;p&#62;Make sure the field has a check in allow to populate dynamically. And look at the documentation for pre_rendering a form as an example of the function you will want to create using the post_paging hook.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64747</link>
			<pubDate>Wed, 04 Jul 2012 11:31:09 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64747@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the explanation.&#60;/p&#62;
&#60;p&#62;What I don't understand is that simple html input fields show the result just fine. Isn't there a different gravity forms type of field or function that can be used for this?&#60;/p&#62;
&#60;p&#62;Also, the second field is on page two of my form so I expected it to load select_stuff again and then use the value of input_13 that was typed in. But I understand this is not the way it works either then?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64745</link>
			<pubDate>Wed, 04 Jul 2012 11:21:34 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You need an action between a user typing into field one and the result showing in field two. So that the database can run its query and return a result from what a user typed in. Or you need some JavaScript (not my specialty) to do this using JQuery or something..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64744</link>
			<pubDate>Wed, 04 Jul 2012 11:20:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64744@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;gform_field_value_ fires on loading of the field. So what is currently happening is that it is checking input_13 on load of select_stuff and that is before a user has a chance to put anything in. If input_13 had a default value of &#34;Start&#34; then select_stuff should have a value of Start. But when a user changes the text, it won't update what is in the select_stuff field because there is no JavaScript making this happen live.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64743</link>
			<pubDate>Wed, 04 Jul 2012 11:19:12 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Exactly, I wish I could have been that clear from the start :D
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64742</link>
			<pubDate>Wed, 04 Jul 2012 11:17:48 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64742@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So you are trying to have a field on a form that someone types into, and then that field is to check the database and then another field is supposed to get populated with a value?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64740</link>
			<pubDate>Wed, 04 Jul 2012 11:12:00 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64740@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are right, tried this before as well but it didn't work.&#60;/p&#62;
&#60;p&#62;input_13 is a field in the same form.&#60;br /&#62;
The value entered in that field is used to compare with database values.&#60;br /&#62;
There is a result when there's a match and this result should be returned in a separate field.&#60;/p&#62;
&#60;p&#62;The code works used as regular php. But in gravity forms &#34;No Match&#34; is what always shows in the result field, because somehow it looks like it loses the variable entered in 'input_13'
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64739</link>
			<pubDate>Wed, 04 Jul 2012 10:55:35 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64739@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Your function should be:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function select_stuff($value){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Also, where are you getting input_13? A previous form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Dynamic population - parameter outputs outside the form, but not in form fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-parameter-outputs-outside-the-form-but-not-in-form-fields#post-64726</link>
			<pubDate>Wed, 04 Jul 2012 09:16:02 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">64726@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am trying to compare a value in my database to a value entered in a gravity form field and when there's a match I want to be able to put results from my database in a gravity forms field (in my case I need to select e-mail addresses).&#60;/p&#62;
&#60;p&#62;In:&#60;br /&#62;
&#60;code&#62;WHERE wp_usermeta.meta_key=&#38;#39;$my_value&#38;#39;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;$my_value what's entered in a gravity forms field value so I guess it could be this as well:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;WHERE wp_usermeta.meta_key=$_POST[&#38;quot;input_13&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I then use the parameter name 'select_stuff' to try and dynamically populate my form field with the result of the function.&#60;/p&#62;
&#60;p&#62;But in Gravity Forms it won't output the result in a field. When I execute the function anywhere else in the page (outside gravity forms) or use a custom html form input field, it does show the result just fine.&#60;/p&#62;
&#60;p&#62;I just tested again with this simple code in my functions.php file.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_field_value_select_stuff&#38;#39;, &#38;#39;select_stuff&#38;#39;);
function select_stuff(){
return $_POST[&#38;quot;input_13&#38;quot;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Works anywhere on my page except when I use parameter name 'select_stuff' in a Gravity forms field.&#60;/p&#62;
&#60;p&#62;The result of this part &#34;No Match&#34;:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(mysql_num_rows($result)==0){
return &#38;quot;No Match&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;DOES show in my gravity form field with the parameter set, even though the previous condition is met...&#60;/p&#62;
&#60;p&#62;Hope it's somewhat clear..:)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
