<?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: Problems with using Custom Field in Send To Notification</title>
		<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification</link>
		<description>Gravity Support Forums Topic: Problems with using Custom Field in Send To Notification</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 09:54:16 +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/problems-with-using-custom-field-in-send-to-notification" rel="self" type="application/rss+xml" />

		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-65759</link>
			<pubDate>Wed, 11 Jul 2012 10:18:18 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">65759@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;got it&#60;/p&#62;
&#60;p&#62; &#60;code&#62;$author_email = get_post_meta($post-&#38;gt;ID, &#38;#39;emailaddresses&#38;#39;, true);&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;Had to use &#60;code&#62;$post-&#38;gt;ID&#60;/code&#62; as the post ID &#60;/p&#62;
&#60;p&#62;Thanks for your help...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-65757</link>
			<pubDate>Wed, 11 Jul 2012 09:54:48 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">65757@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;I actually have a bit more info, I am nearly there I can feel it!!!&#60;/p&#62;
&#60;p&#62;I have looked at the documentation closer and have tried to update this using hooks as outlined here &#60;a href=&#34;http://www.gravityhelp.com/documentation/index.php?title=Using_Dynamic_Population&#38;amp;oldid=933&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/index.php?title=Using_Dynamic_Population&#38;amp;oldid=933&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The code I am using is as follows (Note my parameter name for the field I want populated is called &#34;directemail&#34;)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* Gravity Forms Direct Contact Form */
add_filter(&#38;#39;gform_field_value_directemail&#38;#39;, &#38;#39;populate_post_author_email&#38;#39;);
function populate_post_author_email($value){
    global $post;

    $author_email = get_post_meta(&#38;#39;emailaddresses&#38;#39;, true); 

    return $author_email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now this does NOT work, but as soon as I add a POST ID to the get_post_meta it works. My test post is 19 so I add it as follows&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* Gravity Forms Direct Contact Form */
add_filter(&#38;#39;gform_field_value_directemail&#38;#39;, &#38;#39;populate_post_author_email&#38;#39;);
function populate_post_author_email($value){
    global $post;

    $author_email = get_post_meta(19, &#38;#39;emailaddresses&#38;#39;, true); 

    return $author_email;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This works and populates the fields with the custom field 'emailaddresses' value. However the problem is that I don't want to enter the post ID as I need it to read the key value for the post it is on. &#60;/p&#62;
&#60;p&#62;Can you let me know how I can adjust the code to allow me to get the value from the post it is on?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-65751</link>
			<pubDate>Wed, 11 Jul 2012 09:19:05 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">65751@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Nearly there :)&#60;/p&#62;
&#60;p&#62;OK, so here we go!&#60;/p&#62;
&#60;p&#62;&#60;hr /&#62;&#60;/p&#62;
&#60;p&#62;* So I have created a Single Line Text Field in my form at the end.&#60;br /&#62;
* I will hide this in CSS so the users don't see it&#60;br /&#62;
* I want this field to capture the email address from my custom field called  &#34;emailaddresses&#34;&#60;br /&#62;
* I click on advanced tab and choose &#34;Allow field to be populated dynamically&#34;&#60;/p&#62;
&#60;p&#62;Now I am stuck&#60;/p&#62;
&#60;p&#62;* What do I add as a parameter? All I know is that my custom field with the email address on each post is called &#34;emailaddresses&#34; is that what I enter as the parameter? &#60;/p&#62;
&#60;p&#62;Maybe you can help me understand what to write in there exactly. &#60;/p&#62;
&#60;p&#62;Also to note: The custom field I am talking about is not in the gravity form. It is a custom field in the post which I enter the email address for each contact. &#60;/p&#62;
&#60;p&#62;Thanks a lot, looking forward to putting this to bed, I am sure I ma missing something small...&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-65495</link>
			<pubDate>Tue, 10 Jul 2012 08:14:30 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">65495@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;* I want to populate the additional email field which I have hidden (admin only) with the email address from the custom field on the post.&#60;/p&#62;
&#60;p&#62;- You can't use an admin only field like this, as that data isn't as available as a normal field. You will want to have a hidden field. You can hide the field using CSS if you have to. Then you should be able to use the merge code for that field and have the data submitted populate into the notification messages.&#60;/p&#62;
&#60;p&#62;* I will then insert a mergetag into the &#34;Send to Email&#34; field on the notifications page so that the email from the custom field is used when the user uses the form. For example I will use this merge tag {Email:4}&#60;/p&#62;
&#60;p&#62;That is correct, the only issue is that you can't do this with an admin only field. &#60;/p&#62;
&#60;p&#62;Let me know if that helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-65460</link>
			<pubDate>Tue, 10 Jul 2012 04:22:22 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">65460@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Would really like to get some support on this issue?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-65247</link>
			<pubDate>Sun, 08 Jul 2012 12:12:21 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">65247@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, did the latest explanation help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-64840</link>
			<pubDate>Thu, 05 Jul 2012 08:06:23 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">64840@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Dave,&#60;/p&#62;
&#60;p&#62;Let me try and explain it better for you, I may have been a bit fuzzy above.&#60;/p&#62;
&#60;p&#62;&#60;hr /&#62;&#60;br /&#62;
** Posts **&#60;br /&#62;
* I have roughly 300 posts on my site&#60;br /&#62;
* each post has a custom field which displays the email address of the real estate agency. Custom field name is &#34;emailaddresses&#34;&#60;br /&#62;
* each post uses a contact form for contacting the real estate *directly*&#60;/p&#62;
&#60;p&#62;&#60;hr /&#62;&#60;br /&#62;
** Contact Form **&#60;br /&#62;
* I have 1 contact form which is used in all posts above (form id 1)&#60;br /&#62;
* My contact form is quite simple and consists of the regular contact information&#60;br /&#62;
* I also have an additional email field which is set to Admin Only to hide it from the user on the front end. (intention with this field is to collect that email from custom field)&#60;/p&#62;
&#60;p&#62;&#60;hr /&#62;&#60;br /&#62;
** Proposal **&#60;br /&#62;
* I want to populate the additional email field which I have hidden (admin only) with the email address from the custom field on the post.&#60;br /&#62;
* I will then insert a mergetag into the &#34;Send to Email&#34; field on the notifications page so that the email from the custom field is used when the user uses the form. For example I will use this merge tag {Email:4}&#60;br /&#62;
* I am assuming this is the correct way to do such a thing?&#60;/p&#62;
&#60;p&#62;&#60;hr /&#62;&#60;br /&#62;
** Questions **&#60;br /&#62;
* I have looked into the documentation for query string, shortcode and hooks but I don't understand how to do it or what is best for my scenario.&#60;br /&#62;
* I have also tried setting a parameter in the hidden field but as I don't understand the above point I am not sure how to get it all to work.&#60;/p&#62;
&#60;p&#62;Would really appreciate some help&#60;/p&#62;
&#60;p&#62;thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-64537</link>
			<pubDate>Tue, 03 Jul 2012 10:22:36 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64537@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you put up some screenshots? Something that can help me understand better what is happening and what you are trying to do. You can't use admin only fields. &#60;/p&#62;
&#60;p&#62;Have you thought about trying to have a field, hidden by CSS that is an e-mail field, and then copying the value from your custom field to the e-mail field using the pre-submission hook and using that field for the to field in your e-mails?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-64536</link>
			<pubDate>Tue, 03 Jul 2012 10:11:47 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">64536@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am still waiting on some support on this issue I need fixed.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fika on "Problems with using Custom Field in Send To Notification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-with-using-custom-field-in-send-to-notification#post-63603</link>
			<pubDate>Tue, 26 Jun 2012 08:11:39 +0000</pubDate>
			<dc:creator>Fika</dc:creator>
			<guid isPermaLink="false">63603@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Unfortunately I am working on a localhost environment so I cannot post you a link. &#60;/p&#62;
&#60;p&#62;Should what I am trying to describe work?&#60;/p&#62;
&#60;p&#62;I can post screen shots of the error if that helps?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
