<?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: Problem Using Values from Dynamically Populated Drop Down Fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields</link>
		<description>Gravity Support Forums Topic: Problem Using Values from Dynamically Populated Drop Down Fields</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Apr 2026 07:48:10 +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/problem-using-values-from-dynamically-populated-drop-down-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>theslink2000 on "Problem Using Values from Dynamically Populated Drop Down Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields#post-74793</link>
			<pubDate>Tue, 11 Sep 2012 10:27:42 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">74793@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thinking about it this is really a separate issue, I'll post it in another topic.&#60;/p&#62;
&#60;p&#62;It can be found here:  &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/pre-select-drop-down-option-from-dynamically-populated-drop-down-field&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/pre-select-drop-down-option-from-dynamically-populated-drop-down-field&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Problem Using Values from Dynamically Populated Drop Down Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields#post-74778</link>
			<pubDate>Tue, 11 Sep 2012 07:50:17 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">74778@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, scratch most of that.  It does populate in the pre_submission hook, it was a typo.&#60;/p&#62;
&#60;p&#62;However, if I populate it via the CSS method or using the drop down fields populate from post type option I cannot seem to predetermine an selection like I can if the list is preset.  &#60;/p&#62;
&#60;p&#62;Does anyone know a work around for this?  It's pretty important.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Problem Using Values from Dynamically Populated Drop Down Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields#post-74765</link>
			<pubDate>Tue, 11 Sep 2012 04:33:37 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">74765@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Problem Using Values from Dynamically Populated Drop Down Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields#post-74357</link>
			<pubDate>Fri, 07 Sep 2012 08:10:23 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">74357@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sadly this is all running on local at the moment so I can't post a link.&#60;/p&#62;
&#60;p&#62;I'm only copying it across to a hidden field because I am using the Custom Post Types plugin and it only supplies a text field to be used as the post title so I am using a drop down (actually the product field because it's the nearest thing to what I actually want) then that information will be passed to the post title field to register the post.  If there's a way of bypassing this I'd love to hear your thoughts so I'll outline my ideal scenario:&#60;/p&#62;
&#60;p&#62;The title field would be a drop down box that narrows down the possibilities (I currently have about 2500 but it's going to grow to potentially approaching 10,000, and I'm aware this is a little slow but they're all stored as product posts for another purpose) so when you user enters two characters it shows the relevant options etc.  When the other fields are completed (there is another drop down that is populated based on user data that also doesn't allow the required setting at the moment) it saves the product as the post title.&#60;/p&#62;
&#60;p&#62;So what I've done is use the product field to select as it only allows one selection, then pass that to the hidden title field to make it save correctly.  Everything else is working I'm just getting blank post titles.&#60;/p&#62;
&#60;p&#62;Does that make any sense?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Problem Using Values from Dynamically Populated Drop Down Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields#post-74352</link>
			<pubDate>Fri, 07 Sep 2012 07:40:19 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">74352@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should not have to edit the post data after submission.  What you want to do is possible.  Can you post a link to this form and the post it creates?&#60;/p&#62;
&#60;p&#62;Why do you have to copy the value from the drop down to the hidden field?  Can't you create the post title from the value of the drop down, without the interim step?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Problem Using Values from Dynamically Populated Drop Down Fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problem-using-values-from-dynamically-populated-drop-down-fields#post-74203</link>
			<pubDate>Thu, 06 Sep 2012 11:19:03 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">74203@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to pass the value of a drop down field that has been dynamically populated via the CSS method outlined on this forum and it works fine and can be seen here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/4674484&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4674484&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;When the form is submitted I want to take the value in the field and copy it to a hidden field which creates the post title via the Custom Post Types Addon.  This works fine with every other field but not these, I've tried turning the advanced interface off but it makes no difference.  I've tried various methods and nothing seems to work, here are the two methods I know work with other fields:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render_3&#38;#39;, &#38;#39;fill_med_fields&#38;#39;);
function fill_med_fields($form) {
    ?&#38;gt;

    &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
    jQuery(document).ready(function($){

        // update &#38;quot;#input_74_9&#38;quot; to the HTML ID of your field from which the value will be retrieved
        $(&#38;#39;#input_3_9&#38;#39;).blur(function(){
            // update the &#38;quot;#input_74_11&#38;quot; to the HTML ID of the field that should be updated
            $(&#38;#39;#input_3_1&#38;#39;).val($(this).val());
        });	// update &#38;quot;#input_74_9&#38;quot; to the HTML ID of your field from which the value will be retrieved
    });
    &#38;lt;/script&#38;gt;

    &#38;lt;?php
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;gform_pre_submission_3&#38;#39;, &#38;#39;populate_med_title&#38;#39;);

function populate_med_name(){
	$_POST[&#38;quot;input_3&#38;quot;] =  $_POST[&#38;quot;input_1&#38;quot;];  //Set the contents of field 18 to the same as field 6
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The only other method I can think of is to manually edit the post data after it's been stored and this seems a bit overkill considering it should work fine.  Normally drop down fields aren't a problem so I think it is purely due to this method of dynamically populating&#60;/p&#62;
&#60;p&#62;Also it seems this method of populating causes issues with the Required option as even when you've selected an option it will throw an error.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
