<?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: Getting field choices as an array</title>
		<link>https://legacy.forums.gravityhelp.com/topic/getting-field-choices-as-an-array</link>
		<description>Gravity Support Forums Topic: Getting field choices as an array</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 19:15:55 +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/getting-field-choices-as-an-array" rel="self" type="application/rss+xml" />

		<item>
			<title>omegastudio on "Getting field choices as an array"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-field-choices-as-an-array#post-54324</link>
			<pubDate>Thu, 05 Apr 2012 01:16:15 +0000</pubDate>
			<dc:creator>omegastudio</dc:creator>
			<guid isPermaLink="false">54324@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm also looking for such a solution.&#60;br /&#62;
Have tried this &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/get-checked-checkboxes&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/get-checked-checkboxes&#60;/a&#62; but it did not work for me
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dochara on "Getting field choices as an array"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/getting-field-choices-as-an-array#post-53119</link>
			<pubDate>Wed, 21 Mar 2012 20:54:15 +0000</pubDate>
			<dc:creator>dochara</dc:creator>
			<guid isPermaLink="false">53119@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a form which with a checkbox field. I have an existing gform_post_submission function for this form, which takes several single value fields and builds them into an array. That's no problem and is working fine.&#60;/p&#62;
&#60;p&#62;This is where I am stumped.&#60;br /&#62;
- I have a multiselect field (checkboxes) which is populated by a query.&#60;br /&#62;
- I need to get the selected values of this field into an array.&#60;br /&#62;
- There is an unknown number of checkboxes, anything from 1 to dozens - if needs be I could get a count and stick it into a hidden field so at least I'd know that at the post submission stage.&#60;/p&#62;
&#60;p&#62;However I am not clear how (or if) I can get the selected choices of a multiselect field to build this array. I suppose I am looking for something vaguely like &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach($choices as $choice) {
if($isselected) {
// add value to array
)
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is it possible to do this? Any pointers?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
