<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Show/Hide question</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Show/Hide question</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 00:19:13 +0000</pubDate>

<item>
<title>yuniar on "Show/Hide question"</title>
<link>https://www.machform.com/forums/topic/showhide-question#post-15416</link>
<pubDate>Fri, 20 Jul 2012 21:37:25 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15416@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;the above is valid for version 2 only. If you are using v3.3 already, the line should be around line 4946
&#60;/p&#62;</description>
</item>
<item>
<title>Lobbyof on "Show/Hide question"</title>
<link>https://www.machform.com/forums/topic/showhide-question#post-15413</link>
<pubDate>Fri, 20 Jul 2012 21:15:00 +0000</pubDate>
<dc:creator>Lobbyof</dc:creator>
<guid isPermaLink="false">15413@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, has the location (line number) of the place to insert the above code changed since this was answered? I can't find the relevant line at position 1825 (or nearby)?
&#60;/p&#62;</description>
</item>
<item>
<title>christo on "Show/Hide question"</title>
<link>https://www.machform.com/forums/topic/showhide-question#post-8545</link>
<pubDate>Fri, 29 Jan 2010 05:38:11 +0000</pubDate>
<dc:creator>christo</dc:creator>
<guid isPermaLink="false">8545@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks very much for the reply.  This is perfect!&#60;br /&#62;
Take care!&#60;br /&#62;
Chris
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Show/Hide question"</title>
<link>https://www.machform.com/forums/topic/showhide-question#post-8380</link>
<pubDate>Wed, 13 Jan 2010 13:19:19 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">8380@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Yes it's, if you need to define which form you need to apply, you can try to edit view-functions.php file and follow these steps :&#60;/p&#62;
&#60;p&#62;1. Go to line 1825 for this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$form_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and put your javascript code exactly above that line like this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($_GET[&#38;#39;id&#38;#39;] == 9) {
		$custom_js =&#38;lt;&#38;lt;&#38;lt;EOT
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/jquery/jquery-core.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script&#38;gt;
$(document).ready(function(){
		$(&#38;#39;#li_10&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);
		$(&#38;#39;#li_11&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);
		$(&#38;#39;#li_12&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);
		$(&#38;#39;#li_13&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);

		$(&#38;#39;#element_98_1&#38;#39;).click(function(){
			$(&#38;#39;#li_10&#38;#39;).toggle();
			$(&#38;#39;#li_11&#38;#39;).toggle();
			$(&#38;#39;#li_12&#38;#39;).toggle();
			$(&#38;#39;#li_13&#38;#39;).toggle();
		});
	});
&#38;lt;/script&#38;gt;
EOT;
		} elseif ($_GET[&#38;#39;id&#38;#39;] == 13) {
		$custom_js =&#38;lt;&#38;lt;&#38;lt;EOT
&#38;lt;script type=&#38;quot;text/javascript&#38;quot; src=&#38;quot;js/jquery/jquery-core.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;
&#38;lt;script&#38;gt;
$(document).ready(function(){
		$(&#38;#39;#li_10&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);
		$(&#38;#39;#li_11&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);
		$(&#38;#39;#li_12&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);
		$(&#38;#39;#li_13&#38;#39;).css(&#38;#39;display&#38;#39;,&#38;#39;none&#38;#39;);

		$(&#38;#39;#element_37_1&#38;#39;).click(function(){
			$(&#38;#39;#li_10&#38;#39;).toggle();
			$(&#38;#39;#li_11&#38;#39;).toggle();
			$(&#38;#39;#li_12&#38;#39;).toggle();
			$(&#38;#39;#li_13&#38;#39;).toggle();
		});
	});
&#38;lt;/script&#38;gt;
EOT;
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to around line 1871, you'll see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$calendar_js}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then change it to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;{$custom_js}
{$calendar_js}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>christo on "Show/Hide question"</title>
<link>https://www.machform.com/forums/topic/showhide-question#post-8376</link>
<pubDate>Wed, 13 Jan 2010 00:03:20 +0000</pubDate>
<dc:creator>christo</dc:creator>
<guid isPermaLink="false">8376@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;br /&#62;
Reference &#60;a href=&#34;http://www.appnitro.com/forums/topic/checkbox-to-open-a-second-address-field?replies=6#post-8262.&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/checkbox-to-open-a-second-address-field?replies=6#post-8262.&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Wouldn't there be a problem if you have 2 separate forms with the same element id and li reference?  Is there a need (and way to implement - if there is) to tell the script which form to apply this to?&#60;/p&#62;
&#60;p&#62;I realized this as I was adding the following to view-functions.php per the instruction as follows for 2 different forms form 9 and form 13.&#60;/p&#62;
&#60;p&#62;Your help would be appreciated.&#60;/p&#62;
&#60;p&#62;/*Form 9 Categories	*/&#60;br /&#62;
		$(document).ready(function(){&#60;br /&#62;
			$('#li_10').css('display','none');&#60;br /&#62;
			$('#li_11').css('display','none');&#60;br /&#62;
			$('#li_12').css('display','none');&#60;br /&#62;
			$('#li_13').css('display','none');&#60;br /&#62;
			$('#element_98_1').click(function(){&#60;br /&#62;
				$('#li_10').toggle();&#60;br /&#62;
				$('#li_11').toggle();&#60;br /&#62;
				$('#li_12').toggle();&#60;br /&#62;
				$('#li_13').toggle();&#60;br /&#62;
			});&#60;br /&#62;
	});&#60;br /&#62;
/*Form 13 Hours of operation*/&#60;br /&#62;
		$(document).ready(function(){&#60;br /&#62;
			$('#li_10').css('display','none');&#60;br /&#62;
			$('#li_11').css('display','none');&#60;br /&#62;
			$('#li_12').css('display','none');&#60;br /&#62;
			$('#li_13').css('display','none');&#60;br /&#62;
			$('#element_37_1').click(function(){&#60;br /&#62;
				$('#li_10').toggle();&#60;br /&#62;
				$('#li_11').toggle();&#60;br /&#62;
				$('#li_12').toggle();&#60;br /&#62;
				$('#li_13').toggle();&#60;br /&#62;
			});&#60;br /&#62;
	});&#60;br /&#62;
&#38;lt;/script
&#60;/p&#62;</description>
</item>

</channel>
</rss>
