<?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: Problems applying custom checkbox values to gform_post_data</title>
		<link>https://legacy.forums.gravityhelp.com/topic/problems-applying-custom-checkbox-values-to-gform_post_data</link>
		<description>Gravity Support Forums Topic: Problems applying custom checkbox values to gform_post_data</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 09:08:11 +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/problems-applying-custom-checkbox-values-to-gform_post_data" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Problems applying custom checkbox values to gform_post_data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-applying-custom-checkbox-values-to-gform_post_data#post-25052</link>
			<pubDate>Mon, 09 May 2011 10:19:19 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">25052@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Eric,&#60;br /&#62;
I am glad you got it working!&#60;/p&#62;
&#60;p&#62;The RGFormsModel is a class that handles all data access in Gravity Forms. It also has some helper methods used across the plugin.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>TheCosmonaut on "Problems applying custom checkbox values to gform_post_data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-applying-custom-checkbox-values-to-gform_post_data#post-25023</link>
			<pubDate>Sun, 08 May 2011 21:10:11 +0000</pubDate>
			<dc:creator>TheCosmonaut</dc:creator>
			<guid isPermaLink="false">25023@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Heya!&#60;/p&#62;
&#60;p&#62;Just wanted to let you know that the changes you made to the code worked EXCEPT changing tax_input to a name; tax_input expects ids. When I switched your code back to IDs, it worked fine! Thank you so, SO much for your help!!&#60;/p&#62;
&#60;p&#62;Just for anyone else's reference, here's the working code: &#60;a href=&#34;http://pastie.org/1879622&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1879622&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;One question: can you elaborate on the RGFormsModel object? What is that?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;--eric
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Problems applying custom checkbox values to gform_post_data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-applying-custom-checkbox-values-to-gform_post_data#post-24648</link>
			<pubDate>Mon, 02 May 2011 13:18:10 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">24648@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You might be right about the order of events. I will take a look at it.&#60;br /&#62;
But I made some changes to your code, and I think I have a version that will work for you.&#60;br /&#62;
The one change you will need to make is replace the &#34;3&#34; with the actual category name in the following line:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$genre_string = &#38;quot;3,&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The tax_input parameter expects category names, not ids.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1857344&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1857344&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Good Luck!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>TheCosmonaut on "Problems applying custom checkbox values to gform_post_data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/problems-applying-custom-checkbox-values-to-gform_post_data#post-24613</link>
			<pubDate>Mon, 02 May 2011 01:25:02 +0000</pubDate>
			<dc:creator>TheCosmonaut</dc:creator>
			<guid isPermaLink="false">24613@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey there!&#60;/p&#62;
&#60;p&#62;So I've got a form which needs to dynamically create a group of checkboxes based on a custom taxonomy and then, when submitted, apply those values to the post that is getting submitted (a custom post type called &#34;marblestag_band&#34;).&#60;/p&#62;
&#60;p&#62;So far, my code successfully retrieves the custom taxonomy values and applies them to the form (so I successfully end up with a group of checkboxes with correct labels and values for each term in the custom taxonomy). The form also successfully creates a new post of the custom post type in the WordPress back end. Unfortunately, however, it does not apply the checked values to the post, so it does not get categorized at all.&#60;/p&#62;
&#60;p&#62;Looking into this, as far as I can tell the only way to define specific terms for a custom taxonomy for a post is to do so using wp_insert_post and the 'tax_input' array. If I hard code the values into gform_post_data (for example, if I put in $post_data[&#34;tax_input&#34;] = array('genre' =&#38;gt; '3,4,5'), the correct custom terms get applied to the post. However, when I try to pull those values from the checkboxes themselves, the terms get lost.&#60;/p&#62;
&#60;p&#62;I then wanted to test what values WERE getting pulled: apparently it's the old default values for the original checkbox (BEFORE the custom taxonomy options were added to the checkbox field). So let's say my checkboxes are input 14 and the original values are the default &#34;First Choice&#34;, &#34;Second Choice&#34;, &#34;Third Choice&#34; but my custom taxonomy terms are &#34;Rock&#34;, &#34;Pop&#34;, and &#34;Soul&#34;.  Using my code, they display on the form page as &#34;Rock&#34;, &#34;Pop&#34;, and &#34;Soul&#34; (as they should) but gform_post_data retrieves their values as &#34;First Choice&#34;, &#34;Second Choice&#34;, &#34;Third Choice&#34; (which is incorrect).&#60;/p&#62;
&#60;p&#62;It appears that gform_post_data is getting its information BEFORE the form is getting updated by gform_pre_render.&#60;/p&#62;
&#60;p&#62;You can see the code I wrote for this here: &#60;a href=&#34;http://www.pastie.org/1855574&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/1855574&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Bottom line is this: I would like to apply dynamic custom taxonomy terms defined by checkboxes to my posts from Gravity Forms. The way I'm doing it right now seems like it should work to me but doesn't. Anyone have any ideas what I'm doing wrong?&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;br /&#62;
--eric&#60;/p&#62;
&#60;p&#62;PS - What's doubly weird is that if I use a drop-down instead of checkboxes, it works. But I need checkbox functionality.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
