<?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: How Can I Limit the Number of Selections Made in a Checkbox Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field</link>
		<description>Gravity Support Forums Topic: How Can I Limit the Number of Selections Made in a Checkbox Field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:26:48 +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/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "How Can I Limit the Number of Selections Made in a Checkbox Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field#post-161947</link>
			<pubDate>Wed, 06 Mar 2013 09:14:38 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">161947@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the update.  When it was added to the end, you probably had an issue with an extra or missing &#38;lt;?php or ?&#38;gt; tag.  When you inserted it in the beginning, you got it properly in a PHP block.  Glad that is working for you now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>black_lady on "How Can I Limit the Number of Selections Made in a Checkbox Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field#post-160951</link>
			<pubDate>Tue, 05 Mar 2013 09:54:59 +0000</pubDate>
			<dc:creator>black_lady</dc:creator>
			<guid isPermaLink="false">160951@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Solution from &#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;&#60;br /&#62;
is works!&#60;br /&#62;
I put this code into functions.php (at the end)  and I recived error.&#60;br /&#62;
But when I put this code on the begining - everythig fine!&#60;br /&#62;
Thanks David :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>black_lady on "How Can I Limit the Number of Selections Made in a Checkbox Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field#post-160038</link>
			<pubDate>Mon, 04 Mar 2013 11:46:19 +0000</pubDate>
			<dc:creator>black_lady</dc:creator>
			<guid isPermaLink="false">160038@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, this solution doesn't work for me. I put this code in functions.php and changed input ID, and nothing. Any idea?&#60;br /&#62;
code i put:&#60;br /&#62;
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
jQuery.noConflict();&#60;br /&#62;
  jQuery(document).ready(function($) {		&#60;/p&#62;
&#60;p&#62; 	$.fn.limit = function(n) {&#60;br /&#62;
 	var self = this;&#60;br /&#62;
 	this.click(function(){ return (self.filter(&#34;:checked&#34;).length&#38;lt;=n); });&#60;br /&#62;
	}&#60;br /&#62;
	$(&#34;ul#input_22_70 li input:checkbox&#34;).limit(2);  				&#60;/p&#62;
&#60;p&#62;  });&#60;br /&#62;
&#38;lt;/script&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "How Can I Limit the Number of Selections Made in a Checkbox Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field#post-54601</link>
			<pubDate>Mon, 09 Apr 2012 10:24:14 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">54601@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This should help you out:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/limiting-the-amount-of-checkboxes-that-can-be-checked&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/limiting-the-amount-of-checkboxes-that-can-be-checked&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>FionaFell on "How Can I Limit the Number of Selections Made in a Checkbox Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-can-i-limit-the-number-of-selections-made-in-a-checkbox-field#post-54573</link>
			<pubDate>Sun, 08 Apr 2012 21:50:27 +0000</pubDate>
			<dc:creator>FionaFell</dc:creator>
			<guid isPermaLink="false">54573@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a need to limit the number of checkboxes that are chosen in a form. &#60;/p&#62;
&#60;p&#62;EXAMPLE:&#60;br /&#62;
(A) Choose 1 category&#60;br /&#62;
(B) Choose up to 3 categories&#60;/p&#62;
&#60;p&#62;If the user chooses (A), so they can only pick one category, from a drop down box. &#60;/p&#62;
&#60;p&#62;What I need to do, is limit the number of selections if they choose (B) as I'm displaying a checkbox list of categories. If I have 72 categories, I want them to only be able to choose a max of 3 (three), not all 72.&#60;/p&#62;
&#60;p&#62;Is this possible? What is the easiest way to implement this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
