<?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 for contact form notifications</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications</link>
		<description>Gravity Support Forums Topic: Dynamic population for contact form notifications</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 22:47:53 +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-for-contact-form-notifications" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-148821</link>
			<pubDate>Mon, 18 Feb 2013 00:08:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148821@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On line 14, can you see what the variable $to contains, to see if it is returning the email address correctly from your query?  If that's not working, it has nothing to do with Gravity Forms but is an issue with using the WordPress functions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mediaryte on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-147013</link>
			<pubDate>Thu, 14 Feb 2013 16:43:40 +0000</pubDate>
			<dc:creator>mediaryte</dc:creator>
			<guid isPermaLink="false">147013@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have come far enough to make the function create a notification when using a static email inside the loop. However, once I try to use the input value, it does not return a value for 'to'.&#60;/p&#62;
&#60;p&#62;I have shared the code I am working with: &#60;a href=&#34;http://pastie.org/6168049&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/6168049&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-146609</link>
			<pubDate>Wed, 13 Feb 2013 12:53:31 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">146609@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I believe we're on the same page.  Can you put some code together and give it a shot? If it does not work, post all the code at pastebin.com or pastie.org and we'll have a look.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mediaryte on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-146318</link>
			<pubDate>Tue, 12 Feb 2013 17:19:51 +0000</pubDate>
			<dc:creator>mediaryte</dc:creator>
			<guid isPermaLink="false">146318@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, I follow you and yes to both of your questions.&#60;/p&#62;
&#60;p&#62;The function logic would be: A drop down of contacts with a value of the post ID. The contact post ID would be retrieved by the function and need to match the post ID (itself) of the listed emails created by the function. The function then returns the matched post ID's email for the notification &#34;to&#34; field and then returns the form complete, correct?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-146091</link>
			<pubDate>Mon, 11 Feb 2013 23:26:34 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">146091@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So you're dynamically populating the drop down with email addresses which are from a custom post type (contact) and stored in those posts in a meta key (custom field) of 'email'.  Is that correct?&#60;/p&#62;
&#60;p&#62;The issue is you do not want the email address stored as the value for the drop down selection, since it would be visible in the source of the page?&#60;/p&#62;
&#60;p&#62;There is no easy way to do this without putting those values in the form somewhere when you gather them all from the custom posts (when you populate your drop down.)  You need to use an email field to be able to use that address in the notification.&#60;/p&#62;
&#60;p&#62;You might need to pull the email addresses from the post again, based on the selection which was made. You could use the gform_pre_submission_filter &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62; and a function you write to pull the address from your custom post based on the selection which was made.  I can't think of another way to do it in the form builder.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mediaryte on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-145680</link>
			<pubDate>Sun, 10 Feb 2013 22:13:17 +0000</pubDate>
			<dc:creator>mediaryte</dc:creator>
			<guid isPermaLink="false">145680@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am using the dynamic population code from the documentation - &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields&#34; rel=&#34;nofollow&#34;&#62;Dynamically Populating Drop Down Fields&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-145629</link>
			<pubDate>Sun, 10 Feb 2013 18:48:00 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145629@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What does this mean?&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
with the populated contact list.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;How are you populating the drop down now? Can you share the code you're using for that?&#60;/p&#62;
&#60;p&#62;The merge tag {custom_field:email} will not work on a page that does not have a custom field with a meta key of &#34;email&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mediaryte on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-145608</link>
			<pubDate>Sun, 10 Feb 2013 17:11:03 +0000</pubDate>
			<dc:creator>mediaryte</dc:creator>
			<guid isPermaLink="false">145608@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am embedding the form in a page, which may be the issue. I am not adding the form to the custom post type. The page contains only the form, with the populated contact list.&#60;/p&#62;
&#60;p&#62;The custom post type is 'contact' with a custom field name 'email'. I have the drop down list of the form populated with only the contacts that contain an email address ('email' returns TRUE).&#60;/p&#62;
&#60;p&#62;I set the contact email field to Everyone to view it in the form, however it does not display a value from the merge tag when selecting a contact from the drop down list. Source shows the value as empty.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-145368</link>
			<pubDate>Sun, 10 Feb 2013 00:37:56 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145368@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds like you did everything correctly.  When you view the post in the post editor, where this form is embedded, can you view the custom fields and see that there is a custom field named &#34;email&#34; with an email address?&#60;/p&#62;
&#60;p&#62;If so, can you see if the entry contains that email address in field 7?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mediaryte on "Dynamic population for contact form notifications"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-for-contact-form-notifications#post-145273</link>
			<pubDate>Sat, 09 Feb 2013 18:26:05 +0000</pubDate>
			<dc:creator>mediaryte</dc:creator>
			<guid isPermaLink="false">145273@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the help.&#60;/p&#62;
&#60;p&#62;I have tried adding {custom_field:email} as the default value of an admin only email field named Contact Email, but when testing the form I do not get a value returned for the email field. I have set the &#34;Send To Email&#34; from as {Contact Email:7}.&#60;/p&#62;
&#60;p&#62;Perhaps there is a disconnect between the populated contact list and the admin only email field?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
