<?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: Disable/remove/modify output of a checkbox based on user_meta</title>
		<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta</link>
		<description>Gravity Support Forums Topic: Disable/remove/modify output of a checkbox based on user_meta</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:59:04 +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/disableremovemodify-output-of-a-checkbox-based-on-user_meta" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-175652</link>
			<pubDate>Mon, 18 Mar 2013 15:14:19 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">175652@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;.gchoice_1_X actually targets the LI that surrounds the checkbox item, that might be the reason it isn't accepting your disabled property. Try using &#34;#choice_1_X&#34; instead.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-172499</link>
			<pubDate>Fri, 15 Mar 2013 14:29:34 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">172499@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi again,&#60;/p&#62;
&#60;p&#62;EDIT:  I'm using this little script to limit the number of boxes that can be checked. &#60;a href=&#34;http://gravitywiz.com/2012/06/11/limiting-how-many-checkboxes-can-be-checked/&#34; rel=&#34;nofollow&#34;&#62;http://gravitywiz.com/2012/06/11/limiting-how-many-checkboxes-can-be-checked/&#60;/a&#62; Going to modify it to work withe the pre_render code now. Will update as soon as it's working.&#60;/p&#62;
&#60;p&#62;I'm just about there.&#60;/p&#62;
&#60;p&#62;Here's a bit of code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// build the script that will mark the items as complete
echo &#38;quot;&#38;lt;script&#38;gt;
			jQuery(document).ready(function() {&#38;quot;;

	foreach ( $completed as $key =&#38;gt; $val ) {
		echo &#38;quot;jQuery(&#38;#39;.gchoice_1_&#38;quot; . $val . &#38;quot;&#38;#39;)
						.addClass(&#38;#39;complete&#38;#39;)
						.find(&#38;#39;input:checkbox&#38;#39;)
						.prop(&#38;#39;disabled&#38;#39;, true); // also tried &#38;#39;disabled&#38;#39;, &#38;#39;disabled&#38;#39;. adding class works.
				&#38;quot;;
	}

echo &#38;quot;});
&#38;lt;/script&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Interestingly enough, I can add a class to the :checkbox, but setting the disabled property won't work.  I can add a class of disabled, and then after the form is rendered, I can update the disabled property via the dev tools console.  Does the form rendering strip out the disabled property?  That would be weird...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-171411</link>
			<pubDate>Thu, 14 Mar 2013 15:49:25 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">171411@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That'll work!  Thanks a lot, Alex.  I really appreciate your help.&#60;/p&#62;
&#60;p&#62;-Jacob
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-171410</link>
			<pubDate>Thu, 14 Mar 2013 15:48:21 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">171410@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh. Yea, what I told you will hide the entire checkbox field. To hide individual checkbox choices, you will need to use the gform_pre_render to create javascript / jQuery code that will be echoed to the screen and hide each individual choice. For example, if your checkbox field ID is 3, the following jQuery code will hide the first and second checkbox items&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;#39;text/javascript&#38;#39;&#38;gt;
jQuery(document).ready(function(){
    jQuery(&#38;#39;.gchoice_3_1&#38;#39;).hide();
    jQuery(&#38;#39;.gchoice_3_2&#38;#39;).hide();
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62; You will need to look at your checkbox field markup to figure out how to target each individual checkbox item.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-170268</link>
			<pubDate>Wed, 13 Mar 2013 19:07:51 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">170268@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Alex! &#60;/p&#62;
&#60;p&#62;I appreciate the response.&#60;/p&#62;
&#60;p&#62;Because I'm working with 1 checkbox field, I found that cssClass won't work.  It hides the entire field, correct?  All of the checkboxes in one field?  I need to modify/disable specific checkboxes in one specific field.  Can I achieve this with the pre_render hook?&#60;/p&#62;
&#60;p&#62;Thanks again for your help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-170007</link>
			<pubDate>Wed, 13 Mar 2013 12:33:36 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">170007@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The gform_field_content is a very complex hook to use because you are basically responsible to create the entire markup for the field, following Gravity Forms patterns. It doesn't look like you need that much control. If all you need is to hide a checkbox field based on some criteria, the best hook to use the gform_pre_render (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_render)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_render)&#60;/a&#62;.&#60;br /&#62;
You can keep most of the logic you have in your code as far as matching the field, and when you find the right field, you can simply set the $field[&#34;cssClass&#34;] property to a class that will hide the field (GF has a gform_hidden class that will probably do the trick for you). &#60;/p&#62;
&#60;p&#62;I hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-169743</link>
			<pubDate>Wed, 13 Mar 2013 07:57:20 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">169743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll bring this to the attention of the development team.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-167832</link>
			<pubDate>Mon, 11 Mar 2013 12:36:03 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">167832@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've cross-posted to StackOverflow: &#60;a href=&#34;http://stackoverflow.com/questions/15344515/gravity-forms-modify-checkbox-based-on-user-meta-value&#34; rel=&#34;nofollow&#34;&#62;http://stackoverflow.com/questions/15344515/gravity-forms-modify-checkbox-based-on-user-meta-value&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jacobdubail on "Disable/remove/modify output of a checkbox based on user_meta"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disableremovemodify-output-of-a-checkbox-based-on-user_meta#post-163746</link>
			<pubDate>Thu, 07 Mar 2013 21:12:55 +0000</pubDate>
			<dc:creator>jacobdubail</dc:creator>
			<guid isPermaLink="false">163746@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey guys,&#60;/p&#62;
&#60;p&#62;I've spent the day with the Developer Docs and made some great progress.  I've hit a bit of a wall that I'm hoping someone can help me figure out.&#60;/p&#62;
&#60;p&#62;I have a well documented gist that's based on the gform_field_content filter documentation&#60;br /&#62;
&#60;a href=&#34;https://gist.github.com/jacobdubail/5113428#file-gistfile1-php&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/jacobdubail/5113428#file-gistfile1-php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Basically, what I want to do is match checkbox fields to user_meta fields.  If there's a match, I want to disable the field, or at the very least, add a class so I can disable via javascript.&#60;/p&#62;
&#60;p&#62;Any help?&#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
Jacob
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
