<?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: Get selected checkbox group values</title>
		<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values</link>
		<description>Gravity Support Forums Topic: Get selected checkbox group values</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:07:54 +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/get-selected-checkbox-group-values" rel="self" type="application/rss+xml" />

		<item>
			<title>webpuzzlemaster on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-82981</link>
			<pubDate>Tue, 23 Oct 2012 14:29:03 +0000</pubDate>
			<dc:creator>webpuzzlemaster</dc:creator>
			<guid isPermaLink="false">82981@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;have the same question, but i need to know which of them has values/selected.. does it mean i need to do something like the code below:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$entry[&#38;#39;7.1&#38;#39;];
$entry[&#38;#39;7.2&#38;#39;];
$entry[&#38;#39;7.3];
$entry[&#38;#39;7.4&#38;#39;];
...
$entry[&#38;#39;7.10&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;wherein the one who fills up the form checks only option1 and option10
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-75605</link>
			<pubDate>Sat, 15 Sep 2012 19:26:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75605@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Getting back to this one.  You said:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
Tried the $entry object but no luck yet...
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;All the values are in the entry.  If in your form field 7 is a group of check boxes, and someone checks box 1 and box 4, you will have these values in the $entry object:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$entry[&#38;#39;7.1&#38;#39;];
$entry[&#38;#39;7.4&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Be sure to quote the field number there.  $entry['7.2'], $entry['7.3'] and $entry['7.5'] will also be present but will have no value.&#60;/p&#62;
&#60;p&#62;Does that accomplish what you need to do?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-74433</link>
			<pubDate>Sat, 08 Sep 2012 02:29:26 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">74433@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No worries, thanks for looking at it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-74403</link>
			<pubDate>Fri, 07 Sep 2012 16:08:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">74403@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, I figured for debugging that was all you needed.  Let me reread your request and see if I can help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-74387</link>
			<pubDate>Fri, 07 Sep 2012 13:13:51 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">74387@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;Thanks for your reply.&#60;/p&#62;
&#60;p&#62;My question is specifically about a checkbox group.&#60;/p&#62;
&#60;p&#62;Is there a way to get the selected values in a checkbox group?&#60;br /&#62;
I need to further process those values. One way would be to store them inside an array so I can use php to handle it from there.&#60;/p&#62;
&#60;p&#62;If there's a better way please let me know.&#60;/p&#62;
&#60;p&#62;Normally I would use the same name for each of the checkboxes to put the selection into an array, but I have not found a way to manipulate the names of inputs in Gravity Forms. Calling each of the boxes individually is not an option.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-74386</link>
			<pubDate>Fri, 07 Sep 2012 12:59:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">74386@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;For debug, you can use the gform_pre_submission or gform_after_submission hooks, then dump the $entry, $form or $_POST using print_r, like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
print_r($form);
print_r($entry);
print_r($_POST);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Depending on how things are processed in your installation, you might be better off logging those dumped variables, rather than just printing them to the screen.  For quick and dirty, printing to the screen might be fine.&#60;/p&#62;
&#60;p&#62;Hook documentation:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ketiga on "Get selected checkbox group values"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/get-selected-checkbox-group-values#post-74372</link>
			<pubDate>Fri, 07 Sep 2012 10:43:39 +0000</pubDate>
			<dc:creator>Ketiga</dc:creator>
			<guid isPermaLink="false">74372@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Is there any way to capture the post (selected) values of a checkbox group in an array?&#60;br /&#62;
Tried the $entry object but no luck yet...&#60;/p&#62;
&#60;p&#62;I can get the value of a single box, but I need multiple in a group.&#60;br /&#62;
I need those values to match some other values in my database.&#60;/p&#62;
&#60;p&#62;Also when I have those values, what's the best way to output/print them to my screen so I can debug and see if things work the way they should?&#60;/p&#62;
&#60;p&#62;Please advice.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
