<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Multiple Selection Boxes - Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/55186.aspx</link><pubDate>Fri, 21 May 2010 15:19:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55186</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55186.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=55186</wfw:commentRss><description>&lt;p&gt;I finally have the Count and Count previous working!&amp;nbsp; This tells me when something has been deleted from my check box and I can trigger something to happen when a deletion has occured.&lt;/p&gt;
&lt;p&gt;Now I just have to figure out how to get what needs to happen to happen...&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Multiple Selection Boxes - Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/55136.aspx</link><pubDate>Thu, 20 May 2010 16:53:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55136</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55136.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=55136</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;Shall we have someone call you?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Multiple Selection Boxes - Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/55135.aspx</link><pubDate>Thu, 20 May 2010 16:42:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55135</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55135.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=55135</wfw:commentRss><description>&lt;p&gt;I REALLY REALLY don&amp;#39;t like these multiple selection boxes.&amp;nbsp; I am tearing my hair out here !&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t get my head round what you are trying to achieve with the counting - cos I can&amp;#39;t get it to work.&lt;/p&gt;
&lt;p&gt;Is it the case that default values based on multiple selection boxes only get updated when something is de-selected from the box and rules on the multiple selection box only fire when something is added ?&lt;/p&gt;
&lt;p&gt;I am afraid I just don&amp;#39;t understand what to do.&lt;/p&gt;</description></item><item><title>Re: Multiple Selection Boxes - Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/55026.aspx</link><pubDate>Wed, 19 May 2010 09:12:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55026</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=55026</wfw:commentRss><description>&lt;p&gt;Thank you for this information Jimmy.&amp;nbsp; I am afraid I am very confused by the instructions re selectedCount and previousSelectedCount.&lt;/p&gt;
&lt;p&gt;If I have a default value on selectedCount = count(listboxfield), why do I need a rule which sets selectedCount =count(listboxfield) ?&amp;nbsp; Surely if I have the Update when value is recalculated ticked that should keep up to date ?&lt;/p&gt;
&lt;p&gt;I have created two fields.&amp;nbsp; CountRegionalGroups and PreviousCountRegionalGroups.&lt;/p&gt;
&lt;p&gt;Default value for CountRegionalGroups = count(RegionalGroups)&amp;nbsp; AND&amp;nbsp; I have a rule on RegionalGroups which (with no condition) sets the value of CountRegionalGroups = count(RegionalGroups).&lt;/p&gt;
&lt;p&gt;When I open the form the value shown is 1.&amp;nbsp; When I tick one item - the value shown is 1.&amp;nbsp; When I tick a 2nd item - the value shown is 1.&amp;nbsp; When I tick a 3rd item&amp;nbsp; - the value shown is 1.&amp;nbsp; When I tick a 4th item the value shown is 1.&amp;nbsp; When I UNtick one of the items - the value shown is 4.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;This does not sound right ?&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Re: Multiple Selection Boxes - Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/54940.aspx</link><pubDate>Mon, 17 May 2010 12:27:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54940</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54940.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54940</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It doesn&amp;#39;t seem that InfoPath allows placing validation conditions on multi-select listboxes, so what you can do is add expression boxes with conditional formatting to indicate when something isn&amp;#39;t right.&amp;nbsp; You can use similar conditional formatting to disable your submit button or anything you need to do to steer the user in the right direction.&lt;/p&gt;&lt;p&gt;For the second question, you&amp;#39;ve probably already discovered that rules on the listbox&amp;#39;s field will not fire when an item is unchecked.&amp;nbsp; So what you can do is this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Add two fields named something like &lt;b&gt;selectedCount&lt;/b&gt; and &lt;b&gt;previousSelectedCount&lt;/b&gt; to your main data source.&lt;/p&gt;&lt;p&gt;Set the default value of &lt;b&gt;selectedCount&lt;/b&gt; to the formula &lt;b&gt;count(&lt;i&gt;listBoxField&lt;/i&gt;)&lt;/b&gt; and add a rule to the list box&amp;#39;s field to set &lt;b&gt;selectedCount&lt;/b&gt; to the value of the formula &lt;b&gt;count(&lt;i&gt;listBoxField&lt;/i&gt;)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Add the rules that you want to the &lt;b&gt;selectedCount&lt;/b&gt; field, to execute on the condition &lt;b&gt;selectedCount &amp;lt; previousSelectedCount&lt;/b&gt;&lt;/p&gt;&lt;p&gt;As the last rule on the &lt;b&gt;selectedCount&lt;/b&gt; field, add a rule (with no condition) to set &lt;b&gt;previousSelectedCount&lt;/b&gt; equal to &lt;b&gt;selectedCount&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Multiple Selection Boxes - Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/54887.aspx</link><pubDate>Fri, 14 May 2010 12:33:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54887</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=54887</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have the requirement for two multiple selection boxes.&lt;/p&gt;
&lt;p&gt;The options available in second box (Box B)&amp;nbsp;are dependent on the selections in the first box (Box A).&amp;nbsp; I have this working well. :)&lt;/p&gt;
&lt;p&gt;There are one or two niggles, and I cannot seem to validate them away.&lt;/p&gt;
&lt;p&gt;If the user selects an option from box A and an appropriate item from box B -- and then changes his mind about box A, the value selected in box B may not now be valid - it is still displayed (though moved to the bottom of the list).&amp;nbsp; How do I (without code &amp;#39;cos I am using&amp;nbsp;qRules as much as I can), show that this value is invalid ? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also in the first box (box A) - if the user selects more than two options I need to flag up that they should use the &amp;quot;Global&amp;quot; option. I have tried counting the number of entries in a rule of the group but that doesn&amp;#39;t seem to work (even accounting for the blank one which multiple selection boxes seems to leave)&lt;/p&gt;
&lt;p&gt;Also... Also if I untick one of the options I want to trigger something to happen.&amp;nbsp; Is there any way to achieve that ?&lt;/p&gt;
&lt;p&gt;Thank you for your help&lt;/p&gt;
&lt;p&gt;Catharine&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>