<?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: Get customfield value and send it as e-mail recipient</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient</link>
		<description>Gravity Support Forums Topic: Get customfield value and send it as e-mail recipient</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 05:35:39 +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/get-customfield-value-and-send-it-as-e-mail-recipient" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21311</link>
			<pubDate>Thu, 24 Mar 2011 11:37:38 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">21311@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@peter The field id is 9.  Here is a screenshot of the HTML for the input.  The name attribute contains the field id.  &#60;a href=&#34;http://grab.by/9EWu&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9EWu&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>peter on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21259</link>
			<pubDate>Wed, 23 Mar 2011 19:59:04 +0000</pubDate>
			<dc:creator>peter</dc:creator>
			<guid isPermaLink="false">21259@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;silly question i guess&#60;/p&#62;
&#60;p&#62;what is the id of the email field on this page &#60;a href=&#34;http://www.ves.nl/max&#34; rel=&#34;nofollow&#34;&#62;http://www.ves.nl/max&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21256</link>
			<pubDate>Wed, 23 Mar 2011 19:36:38 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">21256@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Peter,&#60;/p&#62;
&#60;p&#62;Give this a shot (make sure to update the code as specified in the inline comments):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php

// update the &#38;#39;2&#38;#39; to the ID of your form
add_filter(&#38;quot;gform_notification_email_2&#38;quot;, &#38;quot;change_notification_email&#38;quot;, 10, 2);
function change_notification_email($email, $form){

    // update the &#38;#39;1&#38;#39; to the ID of your field
    $email = $_POST[&#38;#39;input_1&#38;#39;];

    return $email;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>peter on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21237</link>
			<pubDate>Wed, 23 Mar 2011 18:56:37 +0000</pubDate>
			<dc:creator>peter</dc:creator>
			<guid isPermaLink="false">21237@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i tried to do so, but i cant get this solutions to work i've tried&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_notification_email_2&#38;quot;, &#38;quot;change_notification_email&#38;quot;, 10, 2);
function change_notification_email($email, $form){
   return &#38;quot;&#38;lt;?php meta(&#38;#39;vl_email&#38;#39;); ?&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21232</link>
			<pubDate>Wed, 23 Mar 2011 18:52:40 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">21232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;In the routing system.  That is more difficult.  I'm not sure if there is a way to do that with routing.  BUT you can write code to dynamically set the Send To address of the Admin Notification.  So while you can't do this with the Routing feature, you can do it with custom code.&#60;/p&#62;
&#60;p&#62;Here is the documentation for the gform_notification_email hook:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_notification_email&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_notification_email&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You would have to write custom code you place in your themes functions.php file that would use this hook to dynamically populate the admin notification send to email.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>peter on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21228</link>
			<pubDate>Wed, 23 Mar 2011 18:47:36 +0000</pubDate>
			<dc:creator>peter</dc:creator>
			<guid isPermaLink="false">21228@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;yep in the routing system
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21221</link>
			<pubDate>Wed, 23 Mar 2011 18:42:13 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">21221@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not 100% sure what you are asking.  Are you wanting to populate a form email field with a value stored in a custom field?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>peter on "Get customfield value and send it as e-mail recipient"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-customfield-value-and-send-it-as-e-mail-recipient#post-21202</link>
			<pubDate>Wed, 23 Mar 2011 17:25:17 +0000</pubDate>
			<dc:creator>peter</dc:creator>
			<guid isPermaLink="false">21202@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i guess this has been asked a million times but i dont get it&#60;/p&#62;
&#60;p&#62;the problem,&#60;br /&#62;
i've got about 90 pages filled with all sorts of custom fields&#60;br /&#62;
some sort of membership directory&#60;br /&#62;
and one of those customfields is called &#34;vl_email&#34;&#60;/p&#62;
&#60;p&#62;how do i get it to send to the routing system&#60;br /&#62;
i need to get it to the routing system because the are also some other emailaddresses the form has to go to based on choices he/she makes...&#60;/p&#62;
&#60;p&#62;please help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
