<?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: Limiting checkbox multiselect AND hidden field reveal</title>
		<link>https://legacy.forums.gravityhelp.com/topic/limiting-checkbox-multiselect-and-hidden-field-reveal</link>
		<description>Gravity Support Forums Topic: Limiting checkbox multiselect AND hidden field reveal</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:10:07 +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/limiting-checkbox-multiselect-and-hidden-field-reveal" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Limiting checkbox multiselect AND hidden field reveal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limiting-checkbox-multiselect-and-hidden-field-reveal#post-45128</link>
			<pubDate>Thu, 29 Dec 2011 12:14:17 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">45128@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Spatil,&#60;/p&#62;
&#60;p&#62;I'm not 100% sure I follow what you are trying to accomplish. Could you post a live sample of your current form and perhaps some additional clarification on your end goal? :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Limiting checkbox multiselect AND hidden field reveal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limiting-checkbox-multiselect-and-hidden-field-reveal#post-45022</link>
			<pubDate>Tue, 27 Dec 2011 20:46:25 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">45022@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am forwarding this post to one of our developers who will review it and let you know if he has any suggestions.  &#60;/p&#62;
&#60;p&#62;Keep in mind this is a customization and technically customizations are not part of support... we'll do our best to provide you with guidance but ultimately we can't write customizations or custom code so we'll have to see if it's something that can be resolved simply via high level guidance or a quick example.&#60;/p&#62;
&#60;p&#62;The developer I have assigned it to is out today due to the holidays but should be able to respond to this when he is back in the office tomorrow.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>spatil on "Limiting checkbox multiselect AND hidden field reveal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limiting-checkbox-multiselect-and-hidden-field-reveal#post-45007</link>
			<pubDate>Tue, 27 Dec 2011 16:29:11 +0000</pubDate>
			<dc:creator>spatil</dc:creator>
			<guid isPermaLink="false">45007@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We've been able to limit multiselect checkboxes to two (out of six). But we have hidden fields that reveal when a box is checked and after checking two boxes, a third hidden field is revealed if the user happens to check a third box. We are trying to limit the hidden field reveals to only the boxes checked.&#60;/p&#62;
&#60;p&#62;Here's the code. Any help would be much appreciated!&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[js]
jQuery(&#38;#39;ul#input_3_23 li input&#38;#39;).click(function(){

		if(jQuery(this).is(&#38;#39;:checked&#38;#39;)){
			var curavaildata = jQuery(this).val();
			hiddenvalue = hiddenvalue + curavaildata + &#38;quot;;&#38;quot;;
		}
		else{
			var curavaildata = jQuery(this).val();
			curavaildata = curavaildata + &#38;quot;;&#38;quot;;
			hiddenvalue = hiddenvalue.replace(curavaildata,&#38;quot;&#38;quot;);
		}
		jQuery(&#38;#39;input#input_3_41&#38;#39;).attr(&#38;quot;value&#38;quot;,hiddenvalue);
		//Fill in the hidden field for the availability data

//check-box limit
 $.fn.limit = function(n) {
 var self = this;
this.click(function(){ return (self.filter(&#38;quot;:checked&#38;quot;).length&#38;lt;=n); });
}
$(&#38;quot;ul#input_3_23 li input:checkbox&#38;quot;).limit(2); 

	});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
