<?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: test checkbox value</title>
		<link>https://legacy.forums.gravityhelp.com/topic/test-checkbox-value</link>
		<description>Gravity Support Forums Topic: test checkbox value</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:16:24 +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/test-checkbox-value" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "test checkbox value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-checkbox-value#post-34378</link>
			<pubDate>Sat, 03 Sep 2011 23:33:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34378@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Right; 3.1 is a string not an integer, so it should be wrapped in quotes.  Glad you got that figured out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pauldewouters on "test checkbox value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-checkbox-value#post-34371</link>
			<pubDate>Sat, 03 Sep 2011 16:11:49 +0000</pubDate>
			<dc:creator>pauldewouters</dc:creator>
			<guid isPermaLink="false">34371@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;thanks, I figured it out:&#60;br /&#62;
using $entry[3.1] doesn't seem to work, but when wrapping it in quotes, it does&#60;br /&#62;
$entry['3.1'] = '1'&#60;br /&#62;
and I set the checkbosx to have a value in the form settings
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "test checkbox value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-checkbox-value#post-34369</link>
			<pubDate>Sat, 03 Sep 2011 15:57:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34369@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Checkbox values are more complex.  I would dump the $entry variable (with print_r or equivalent) to get the actual names of the entries you need.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pauldewouters on "test checkbox value"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/test-checkbox-value#post-34362</link>
			<pubDate>Sat, 03 Sep 2011 15:08:47 +0000</pubDate>
			<dc:creator>pauldewouters</dc:creator>
			<guid isPermaLink="false">34362@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;using the gform_after_submission action, I'm retrieving the values of the $entry variable.&#60;br /&#62;
I could get the value from a textbox and a radio group, but how do I get it from a checkbox?&#60;br /&#62;
radio group:&#60;br /&#62;
if($entry[1] == 'choice 1')&#60;br /&#62;
// do something&#60;br /&#62;
elseif($entry[1] == 'choice 2')&#60;br /&#62;
//do something else&#60;/p&#62;
&#60;p&#62;this works with radio buttons
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
