<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Checkbox field validation in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/69079.aspx</link><pubDate>Mon, 08 Aug 2011 19:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69079</guid><dc:creator>ynygma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=69079</wfw:commentRss><description>&lt;p&gt;Eureka!&amp;nbsp; (which is also a great show on scfi;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyway, thank you thank you!&lt;/p&gt;
&lt;p&gt;I went about it a little different but you spurred the idea for me with the chkCount hidden field.&amp;nbsp; What I did different was to due my validation on the Submit button to check to see if chkCount &amp;gt; 0 and that worked perfectly:)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you,&lt;br /&gt;Ynygma&lt;/p&gt;</description></item><item><title>Re: Checkbox field validation in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/67165.aspx</link><pubDate>Wed, 08 Jun 2011 11:07:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67165</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67165</wfw:commentRss><description>&lt;p&gt;* You could do this with jScript - it might even be easier than the following method, which doesn&amp;#39;t require rules. &lt;/p&gt;&lt;p&gt;When I&amp;#39;ve had multiple check boxes - and at least one must be checked, I&amp;#39;ve used a counter field.&lt;/p&gt;&lt;p&gt;So you have 3 chk box fields my: chkBox1, my: chkBox2, my: chkBox3. You also create a field to store a &amp;#39;counter&amp;#39; my:chkCount&lt;br /&gt;&lt;/p&gt;&lt;p&gt;On each chkBox field I put two rules.&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;if chkBox = true then my:chkCount = my:chkCount + 1&lt;/p&gt;&lt;p&gt;if chkBox = false then my:chkCount = my:chkCount - 1&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;This means that whenever at least ONE check box is ticked, my:chkCount will be greater than 0 and if none are ticked then my:chkCount = 0&lt;/p&gt;&lt;p&gt;Then on&amp;nbsp; each chkBox validation rules I say that my:chkCount must be &amp;gt; 0. So all chkBoxes now show up outlined in Red until at least one checked.&lt;/p&gt;&lt;p&gt;I currently have Infopath uninstalled - if you still don&amp;#39;t understand, I&amp;#39;ll be back tomorrow with an example to attach.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Checkbox field validation in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/67161.aspx</link><pubDate>Wed, 08 Jun 2011 06:41:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67161</guid><dc:creator>kishore</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=67161</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please check if this helps to you &lt;/p&gt;
&lt;p&gt;var isValid&amp;nbsp;&amp;nbsp;=&amp;quot;0&amp;quot;;&lt;/p&gt;
&lt;p&gt;$(&amp;quot;[id$=&amp;#39;tbl&amp;#39;]&amp;nbsp; :checked&amp;quot;).each(function () {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; isValid = &amp;quot;1&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (isValid == &amp;quot;0&amp;quot;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&amp;#39;Please select at least one&amp;nbsp; Value&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;table id =&amp;quot;tbl&amp;quot; &amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;chk1&amp;lt;td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;chk2&amp;lt;td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/table&amp;gt;&lt;/p&gt;</description></item><item><title>Re: Checkbox field validation in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/53085.aspx</link><pubDate>Wed, 24 Mar 2010 15:39:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53085</guid><dc:creator>dogah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=53085</wfw:commentRss><description>&lt;p&gt;I had a different solution.&lt;/p&gt;&lt;p&gt;In changed event of the checkbox i controlled if the value is true, then set a value in the xml which i control when submitting the form.It works fine.Remember to set &amp;quot;always&amp;quot;&amp;nbsp; ıf the postback options of the checkbox&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Checkbox field validation in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/53073.aspx</link><pubDate>Wed, 24 Mar 2010 08:33:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53073</guid><dc:creator>dogah</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=53073</wfw:commentRss><description>&lt;p&gt;Hello;&lt;/p&gt;&lt;p&gt;I have a browser-enabled form which has a repeating table in it.&lt;/p&gt;&lt;p&gt;My problem is: how can i validate that &lt;b&gt;at least one&lt;/b&gt; of the checkboxes&amp;nbsp; is selected and prevent the form to be submitted if none is selected.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;d appreciate any help.Thank you&lt;/p&gt;&lt;p&gt;Doga&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>