<?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: gform_field_value for specific form?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form</link>
		<description>Gravity Support Forums Topic: gform_field_value for specific form?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 09:43:07 +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/gform_field_value-for-specific-form" rel="self" type="application/rss+xml" />

		<item>
			<title>kadamwhite on "gform_field_value for specific form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form#post-46815</link>
			<pubDate>Thu, 19 Jan 2012 00:22:05 +0000</pubDate>
			<dc:creator>kadamwhite</dc:creator>
			<guid isPermaLink="false">46815@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1 to having the form ID available in some way to the field_values hook—I feel like wanting to do specific things based on the form would be a pretty common use-case
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "gform_field_value for specific form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form#post-46390</link>
			<pubDate>Sat, 14 Jan 2012 18:21:08 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46390@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great! Thanks, will try this. Would it make sense to add that ability to call gform_field_values with an ID? Like some of your other hooks/filters? gform_field_values_1, gform_field_values_2 or gform_field_values for all?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_field_value for specific form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form#post-46055</link>
			<pubDate>Tue, 10 Jan 2012 20:49:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46055@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In general, I think you might have to combine two filters or hooks to make this happen.  You will need to put this filter, to populate the name, inside a function that checks for the form ID, since the form ID is not used in gform_field_values.&#60;/p&#62;
&#60;p&#62;You might do something like this (untested):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;populate_name&#38;quot;);
function populate_name($form){
    // for form 5
    if($form[&#38;quot;id&#38;quot;] == 5) {
        add_filter(&#38;quot;gform_field_value_first_name&#38;quot;, &#38;quot;read_name&#38;quot;);
        function read_name($value) {
            // read your username here into the $username variable
            return $username;
        } // end read_name

    // for form 1
    if($form[&#38;quot;id&#38;quot;] == 1) {
        add_filter(&#38;quot;gform_field_value_first_name&#38;quot;, &#38;quot;read_name&#38;quot;);
        function read_name($value) {
            // read your username here into the $username variable
            return $username;
        } // end read_name
    } // end gform_field_value_first_name
    return $form;
} // end gform_pre_render&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would be a high level overview of how to do it.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "gform_field_value for specific form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form#post-46017</link>
			<pubDate>Tue, 10 Jan 2012 17:43:11 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46017@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let's say I have form 1 that uses &#34;first_name&#34; and form 2 that uses &#34;first_name&#34; as the parameter name. On form 1 I want to populate this with the info from the BP xprofile field on form 2 I want to populate it from the WP profile field. &#60;/p&#62;
&#60;p&#62;Of course I could use bp_first_name and wp_first_name, but just wanted to know if it is possible to keep the same parameter name and use gform_field_value for a specific form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_field_value for specific form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form#post-46012</link>
			<pubDate>Tue, 10 Jan 2012 17:28:19 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46012@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes.  But you need to share more information with us.  Give us an example of how you expect this to work, and we will help you with the code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "gform_field_value for specific form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_field_value-for-specific-form#post-45987</link>
			<pubDate>Tue, 10 Jan 2012 15:11:16 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">45987@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;Can the gform_field_value be made/used, so that it is (or can be) form specific?&#60;/p&#62;
&#60;p&#62;Let's say I have more than one form that uses the same parameter name i.e &#34;my_parameter&#34;. As far as I understand that filter at the moment will populate the &#34;my_parameter&#34; on all forms with the same values. What if I want to use the same parameter name, but have on different forms different values pre-populated? Is that possible?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
