<?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 Value from Drop Down Select Box</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-value-from-drop-box</link>
		<description>Gravity Support Forums Topic: Get Value from Drop Down Select Box</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:06:11 +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-value-from-drop-box" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Get Value from Drop Down Select Box"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-value-from-drop-box#post-81291</link>
			<pubDate>Mon, 15 Oct 2012 21:45:46 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81291@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for posting your solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>frangistar on "Get Value from Drop Down Select Box"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-value-from-drop-box#post-81210</link>
			<pubDate>Mon, 15 Oct 2012 15:31:32 +0000</pubDate>
			<dc:creator>frangistar</dc:creator>
			<guid isPermaLink="false">81210@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok well since I couldn't get any help on here with this I went outside of here and got the answer. I though I would post it here just in case someone else needs it. This takes the value from a product drop box and splits into 2 different text fields. For example &#34;Second Choice&#124; 199&#34; is split at the &#34;&#124;&#34;.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_render_3&#38;quot;, &#38;quot;monitor_dropdown&#38;quot;);
function monitor_dropdown($form){

?&#38;gt;
    &#38;lt;scr ipt type=&#38;quot;text/java script&#38;quot;&#38;gt;
function the_form(str,varr)
{
var n=str.split(&#38;quot;&#124;&#38;quot;);
if(varr==1) return n[0]; else return n[1];
}
jQuery(document).ready(function(){
jQuery(&#38;#39;#input_3_1&#38;#39;).bind(&#38;#39;change&#38;#39;, function()
{
//get selected value from drop down;
var selectedValue = jQuery(&#38;quot;#input_3_1&#38;quot;).val();
//populate a text field with the selected drop down value
//this will populate it with the text part of the selected value
jQuery(&#38;quot;#input_3_2&#38;quot;).val(the_form(selectedValue,1));
jQuery(&#38;quot;#input_3_3&#38;quot;).val(the_form(selectedValue,2));
});
});
&#38;lt;/script&#38;gt;
&#38;lt;?php

return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;[chrishajer: broke the words script and javascript to get them to pass through firehost security filter]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>frangistar on "Get Value from Drop Down Select Box"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-value-from-drop-box#post-81175</link>
			<pubDate>Mon, 15 Oct 2012 13:38:45 +0000</pubDate>
			<dc:creator>frangistar</dc:creator>
			<guid isPermaLink="false">81175@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Bumping this to see if anyone can help me. Any one?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>frangistar on "Get Value from Drop Down Select Box"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-value-from-drop-box#post-80876</link>
			<pubDate>Sun, 14 Oct 2012 15:50:29 +0000</pubDate>
			<dc:creator>frangistar</dc:creator>
			<guid isPermaLink="false">80876@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok so I am thinking of having the return value go to a hidden field then have jquery split the value from there into the two separate fields I want? Any thoughts?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>frangistar on "Get Value from Drop Down Select Box"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-value-from-drop-box#post-80814</link>
			<pubDate>Sun, 14 Oct 2012 00:40:02 +0000</pubDate>
			<dc:creator>frangistar</dc:creator>
			<guid isPermaLink="false">80814@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So i have done pretty well getting this to work on my test form. My form is able to put whatever is select in the drop down box in the text field below. But I am pulling the drop down value from a product drop box. So the value coming back is &#34;Second Choice&#124; 199&#34; I need a way to separate this into two separate boxes. So &#34;Second Choice&#34; is in one text box and &#34;199&#34; Is in a seperate text box. Ultimately this is going to be an order summary on the sidebar of my page. This is very specific to what my client wants.&#60;br /&#62;
Link to the test form: &#60;a href=&#34;http://ineedapassport.com/test/&#34; rel=&#34;nofollow&#34;&#62;http://ineedapassport.com/test/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
