<?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 loaded options in select box disappearing in multi-page forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-loaded-options-in-select-box-disappearing-in-multi-page-forms</link>
		<description>Gravity Support Forums Topic: Dynamically loaded options in select box disappearing in multi-page forms</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:36:22 +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-loaded-options-in-select-box-disappearing-in-multi-page-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>44pixels on "Dynamically loaded options in select box disappearing in multi-page forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-loaded-options-in-select-box-disappearing-in-multi-page-forms#post-45920</link>
			<pubDate>Mon, 09 Jan 2012 20:13:27 +0000</pubDate>
			<dc:creator>44pixels</dc:creator>
			<guid isPermaLink="false">45920@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@randomwalk Did you guys ever figure this issue out? We're also using AJAX to populate dropdowns based on user selections in a multi-page form and the data is being lost in subsequent pages. Any help would be greatly appreciated, I've been working on it for hours and I'm stumped!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Dynamically loaded options in select box disappearing in multi-page forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-loaded-options-in-select-box-disappearing-in-multi-page-forms#post-21749</link>
			<pubDate>Mon, 28 Mar 2011 11:01:26 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">21749@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;gform_post_submission is the right hook to get a snapshot of the data. Your problem is that you are populating the second drop down only when the first drop down changes. When the page refreshes when going to the second page, your changes are gone.&#60;br /&#62;
If your form is an AJAX form, you can use the gform_page_loaded javascript hook (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_page_loaded&#60;/a&#62;) to re-populate your drop down everytime the page changes.&#60;br /&#62;
If your form is not an AJAX form, you will need to use the gform_pre_render php filter (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render&#60;/a&#62;) in order to add those drop down values when going from one page to the next.&#60;/p&#62;
&#60;p&#62;I hope this helps!&#60;br /&#62;
Alex.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>randomwalk on "Dynamically loaded options in select box disappearing in multi-page forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-loaded-options-in-select-box-disappearing-in-multi-page-forms#post-21712</link>
			<pubDate>Sun, 27 Mar 2011 14:45:12 +0000</pubDate>
			<dc:creator>randomwalk</dc:creator>
			<guid isPermaLink="false">21712@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;On the off chance, we're currently using the gform_post_submission hook ... to just get a snapshot of the data, would the gform_pre_submission hook happen to have the raw data, or -- as it was on a previous page of a multipage form -- would that not work either?&#60;/p&#62;
&#60;p&#62;Looking forward to hearing what the developer thinks!&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Dynamically loaded options in select box disappearing in multi-page forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-loaded-options-in-select-box-disappearing-in-multi-page-forms#post-21689</link>
			<pubDate>Sun, 27 Mar 2011 13:05:44 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">21689@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are exactly right.  There is logic in place to make sure the values in the drop down select box matches those in the database.  This is for security reasons so that users can't manipulate the selection values.&#60;/p&#62;
&#60;p&#62;There is, however, a way around this.  I am forwarding this post to one of our developers who will respond with some information on how to accomplish what you want to do without running into the data validation issue.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>randomwalk on "Dynamically loaded options in select box disappearing in multi-page forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-loaded-options-in-select-box-disappearing-in-multi-page-forms#post-21672</link>
			<pubDate>Sun, 27 Mar 2011 10:58:17 +0000</pubDate>
			<dc:creator>randomwalk</dc:creator>
			<guid isPermaLink="false">21672@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey guys,&#60;/p&#62;
&#60;p&#62;We're currently hitting a bit of a problem with may be some built in GravityForms data validation code biting us in the rear.  Hoping you'll know ...&#60;/p&#62;
&#60;p&#62;In short, what we're doing when building a form is adding a class name to a certain field that we're using (via the built in hook) and populating that dropdown's value all ajaxy-ish based on the selection from a previous dropdown, like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery.noConflict();
jQuery(document).ready(function($){
	$(&#38;#39;li.rw_school_dropdown select&#38;#39;).change(function(){
		$.ajax({
			url		:	&#38;#39;&#38;lt;?php bloginfo(&#38;#39;url&#38;#39;); ?&#38;gt;&#38;#39;,
			data	:	{
				action		:	&#38;#39;get_degrees_options_from_school_id&#38;#39;,
				school_id	:	$(this).val()
			},
			dataType:	&#38;#39;text&#38;#39;,
			success	:	function( data ){
					console.log( data );
					$(&#38;#39;li.rw_degree_dropdown select&#38;#39;).html( data );
				}
		});
	});
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and it's working great!  The second field gets populated properly, and on single-page forms the data we're catching at gform_post_submission is good, and the field has the proper value from the dynamically loaded dropdown.&#60;/p&#62;
&#60;p&#62;However, on multi-page forms, with the dropdowns on page 1 the form, it seems that the value doesn't get carried across to the gform_post_submission hook ... my first guess is that you guys may be running some sort of data validation, making sure that the option selected by the dropdown select box matches one of those available for the form in  the DB?  As we're populating it dynamically from an alternate data source, of course it's not going to match, and therefore gets filtered out?&#60;/p&#62;
&#60;p&#62;Is there any way that we can get the data we want?  Do you have any idea why it's getting snagged away?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
