<?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: Values of hidden fields are posted</title>
		<link>https://legacy.forums.gravityhelp.com/topic/values-of-hidden-fields-are-posted</link>
		<description>Gravity Support Forums Topic: Values of hidden fields are posted</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:36:30 +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/values-of-hidden-fields-are-posted" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Values of hidden fields are posted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/values-of-hidden-fields-are-posted#post-4445</link>
			<pubDate>Sun, 04 Apr 2010 10:44:30 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">4445@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks! We will look into it and see about adding it or another fix to the next release.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bartv2 on "Values of hidden fields are posted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/values-of-hidden-fields-are-posted#post-4435</link>
			<pubDate>Sat, 03 Apr 2010 09:11:05 +0000</pubDate>
			<dc:creator>bartv2</dc:creator>
			<guid isPermaLink="false">4435@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Line 3 should be 'continue', sorry.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bartv2 on "Values of hidden fields are posted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/values-of-hidden-fields-are-posted#post-4434</link>
			<pubDate>Sat, 03 Apr 2010 07:59:00 +0000</pubDate>
			<dc:creator>bartv2</dc:creator>
			<guid isPermaLink="false">4434@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;I didn't have time to look into this until now. After diving into the code, I did find that all post category information is saved, regardless of it's display state (as a result of conditional logic).&#60;/p&#62;
&#60;p&#62;In the file forms_model.php in the function get_post_fields(), I inserted the following code right before the switch statement to check if the field should be saved or not, and things work fine now.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if( RGFormsModel::is_field_hidden($form, $field, array()) ) {
	break;
}

switch($field[&#38;quot;type&#38;quot;]){&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can you verify is this is a correct solution and if so, include it in the next release?&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Bart
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Values of hidden fields are posted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/values-of-hidden-fields-are-posted#post-3616</link>
			<pubDate>Thu, 25 Feb 2010 13:06:04 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">3616@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd have to look at your form setup if you can provide us with a WordPress admin login via our Contact Us form.&#60;/p&#62;
&#60;p&#62;Conditional fields that aren't displayed are not supposed to have their data saved.  Testing locally this was the case, so i'd have to see what you are doing differently with your form setup to determine what is going on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bartv2 on "Values of hidden fields are posted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/values-of-hidden-fields-are-posted#post-3605</link>
			<pubDate>Thu, 25 Feb 2010 11:50:23 +0000</pubDate>
			<dc:creator>bartv2</dc:creator>
			<guid isPermaLink="false">3605@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've set up some conditional category select fields:&#60;/p&#62;
&#60;p&#62;1: Select type A or B&#60;/p&#62;
&#60;p&#62;show only if type=A: 2: Select category type 1&#60;/p&#62;
&#60;p&#62;show only if type=B: 3: Select category type 2&#60;/p&#62;
&#60;p&#62;The user interface works great, but I find that values of hidden category select fields are posted and stored, which can potentially leave 'dirty' information in my database.&#60;/p&#62;
&#60;p&#62;A scenario to recreate this:&#60;/p&#62;
&#60;p&#62;- Select type A&#60;br /&#62;
- Field 2 is shown, select a category&#60;br /&#62;
- Select type B&#60;br /&#62;
- Field 2 is hidden, field 3 is shown. Select a category&#60;br /&#62;
- Submit the form&#60;/p&#62;
&#60;p&#62;Now values for both field 1,2 and 3 are submitted and stored.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Bart
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
