<?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: Bug - gform meta field - can&#039;t use boolean false</title>
		<link>https://legacy.forums.gravityhelp.com/topic/bug-gform-meta-field-cant-use-boolean-false</link>
		<description>Gravity Support Forums Topic: Bug - gform meta field - can&#039;t use boolean false</description>
		<language>en-US</language>
		<pubDate>Sat, 18 Apr 2026 14:56:45 +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/bug-gform-meta-field-cant-use-boolean-false" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Bug - gform meta field - can&#039;t use boolean false"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-gform-meta-field-cant-use-boolean-false#post-79863</link>
			<pubDate>Tue, 09 Oct 2012 15:17:54 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">79863@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, tyndalewebteam,&#60;/p&#62;
&#60;p&#62;I would like to try and reproduce the issue. Can you provide me an export of your form and any GF filters you are using? I want to do exactly the same thing as you are doing. You can email the form export to &#60;a href=&#34;mailto:dana@rocketgenius.com&#34;&#62;dana@rocketgenius.com&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tyndalewebteam on "Bug - gform meta field - can&#039;t use boolean false"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-gform-meta-field-cant-use-boolean-false#post-79699</link>
			<pubDate>Mon, 08 Oct 2012 16:49:08 +0000</pubDate>
			<dc:creator>tyndalewebteam</dc:creator>
			<guid isPermaLink="false">79699@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for passing that along. I look forward to hearing their response.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Bug - gform meta field - can&#039;t use boolean false"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-gform-meta-field-cant-use-boolean-false#post-79695</link>
			<pubDate>Mon, 08 Oct 2012 16:37:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">79695@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've asked the developers for their input on this one.  Thank you for the detailed report of your findings.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tyndalewebteam on "Bug - gform meta field - can&#039;t use boolean false"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-gform-meta-field-cant-use-boolean-false#post-79690</link>
			<pubDate>Mon, 08 Oct 2012 16:24:07 +0000</pubDate>
			<dc:creator>tyndalewebteam</dc:creator>
			<guid isPermaLink="false">79690@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We were tracking down a problem where a checkbox state was not being retained when trying to save as gform meta field.&#60;/p&#62;
&#60;p&#62;After investigating the code in &#60;code&#62;forms_model.php&#60;/code&#62; and taking a look at the database, I noted that the records were always being inserted and never updated. So I cleared the lead_meta table and tried saving the ticked checkbox again. Saw the new record in the table. Then I tried to save it unticked and verified that it indeed updated the existing record. Next, I attempted to save the ticked checkbox and that's when a new record was inserted. From that point on, I found that whatever value, Boolean or otherwise, would just be inserted as a new record.&#60;/p&#62;
&#60;p&#62;Taking a look at the code for the &#60;code&#62;gform_update_meta&#60;/code&#62; function, I found that the check for an existing record looked a little something like this:&#60;br /&#62;
&#60;code&#62;$meta_exists = gform_get_meta($entry_id, $meta_key) !== false;&#60;/code&#62; (line #2839)&#60;/p&#62;
&#60;p&#62;I also noted in the &#60;code&#62;gform_get_meta&#60;/code&#62; function, we are converting &#60;code&#62;null&#60;/code&#62; (actually nonexistent) records to false.&#60;br /&#62;
&#60;code&#62;$meta_value = $value == null ? false : maybe_unserialize($value);&#60;/code&#62; (line #2829)&#60;br /&#62;
This leads me to believe that it was by design to return false in the case of a nonexistent meta field record.&#60;/p&#62;
&#60;p&#62;The problem with this is that when you save a Boolean false value--unwittingly or purposefully--it will forever be seen by the current logic as &#34;nonexistent&#34; and a new record will be created every save onward since the &#60;code&#62;gform_get_meta&#60;/code&#62; function will always grab the first natural order record available and then blatantly lie about its whereabouts.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
