<?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: Dynamically populate dropdown via shortcode</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-dropdown-via-shortcode</link>
		<description>Gravity Support Forums Topic: Dynamically populate dropdown via shortcode</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:26:13 +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/dynamically-populate-dropdown-via-shortcode" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Dynamically populate dropdown via shortcode"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-dropdown-via-shortcode#post-50238</link>
			<pubDate>Wed, 22 Feb 2012 17:55:17 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">50238@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It is not possible to dynamically populate a drop down this way.  It's only possible to use the shortcode to pre-select an existing value.  The shortcode does not support it.&#60;/p&#62;
&#60;p&#62;It can be done using custom PHP.  What you could do is store the value of the 2 contacts as custom fields with the post that you create.  Then you could write custom PHP to dynamically populate the drop down with those values when the form is displayed.&#60;/p&#62;
&#60;p&#62;You can find information on how to dynamically populate a drop down here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sproutlet on "Dynamically populate dropdown via shortcode"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-dropdown-via-shortcode#post-49596</link>
			<pubDate>Thu, 16 Feb 2012 11:50:14 +0000</pubDate>
			<dc:creator>sproutlet</dc:creator>
			<guid isPermaLink="false">49596@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just want to reply and say that I requested this but there was an issue with my account so it must have not linked to my new login.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Dynamically populate dropdown via shortcode"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populate-dropdown-via-shortcode#post-49537</link>
			<pubDate>Wed, 15 Feb 2012 18:06:32 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">49537@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is it possible to dynamically populate a dropdown with multiple key value pairs from the shortcode? The scenario I have is multiple State pages and for each state there are contacts. So for example, the NJ state page may have 2 contacts: 1) Lisa, &#60;a href=&#34;mailto:lisa@gmail.com&#34;&#62;lisa@gmail.com&#60;/a&#62; and 2) John, &#60;a href=&#34;mailto:john@gmail.com&#34;&#62;john@gmail.com&#60;/a&#62;. All of these state pages use the same exact form except where the email is sent to. So each page could have a shortcode calling the same form but passing a different array of values for the email dropdown.&#60;/p&#62;
&#60;p&#62;This is a bit more complicated so I don't expect shortcodes to handle this. I will probably have to use the pre_render filter and populate the dropdown like that. If I go that route, I would have to find an easy way for the user to add/edit/update values to populate the dropdown (label and value pairs).
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
