<?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: Using gform_post_submission to retrieve Checkbox values</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-gform_post_submission-to-retrieve-checkbox-values</link>
		<description>Gravity Support Forums Topic: Using gform_post_submission to retrieve Checkbox values</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:12:48 +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/using-gform_post_submission-to-retrieve-checkbox-values" rel="self" type="application/rss+xml" />

		<item>
			<title>eschoolnews on "Using gform_post_submission to retrieve Checkbox values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform_post_submission-to-retrieve-checkbox-values#post-55535</link>
			<pubDate>Tue, 17 Apr 2012 15:41:00 +0000</pubDate>
			<dc:creator>eschoolnews</dc:creator>
			<guid isPermaLink="false">55535@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I need to send the values of a form that has been submitted to another function on my site in the form of an array.  The array is not being populated with the values from checkboxes, but other kinds of inputs are correctly input into the array. The values are being stored correctly in the form entries.&#60;/p&#62;
&#60;p&#62;Below are the key parts of the function. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission_50&#38;quot;, &#38;quot;SF_Account_Upsert50&#38;quot;, 10, 2);
function SF_Account_Upsert50($entry, $form){
	global $wpdb;
	$newperson = array();
	if (!empty ($entry[30])) {
			$newperson[&#38;#39;WP_Login__c&#38;#39;] = strtolower($entry[30]); //this is stored correctly
		}
	if (!empty ($entry[32])){ //is a checkbox ... fails
		$newperson[&#38;#39;Grade_Level__c&#38;#39;] = $entry[32];
	}
//outside the check
	$newperson[&#38;#39;Grade_Level__c&#38;#39;] = $entry[32]; // inserts empty value
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
