<?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: InfoPath2010 - Multiple Selection Control - Setting values using Rules</title><link>https://www.infopathdev.com:443/forums/thread/81446.aspx</link><pubDate>Tue, 07 Aug 2012 13:18:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81446</guid><dc:creator>srudenko</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=81446</wfw:commentRss><description>&lt;p&gt;That sucks. Is there at least a way to catch the users input and try to validate it?&lt;/p&gt;
&lt;p&gt;I setup a hidden field for each multiple selection box and then I found another thread here which contained a formula which will write the checked values -- &amp;gt; substring(eval(eval(DeploymentPrefs[. != &amp;quot;&amp;quot;], &amp;#39;concat(&amp;quot;;&amp;quot;, .)&amp;#39;), &amp;quot;..&amp;quot;), 2)&lt;/p&gt;
&lt;p&gt;The above works and whenever you check a value it writes it to the field containing that formula. Then I created other text fields that I want to be hidden unless the user selects wrong values. For example if they select Workstation in Deployment Preference but not Windows 7 in Target OS I want the warning message to become visible otherwise it should be hidden. I can only get the rule to work with 1 or 2 combinations of possible mismatched selections but there are too many and I can&amp;#39;t figure out how to setup the rules. For example I have one rule that says if DeplPref does not contain &amp;quot;Workstation&amp;quot; OR TargetOS does not contain &amp;quot;Server&amp;quot; then hide the control (text box with the warning about mismatch). Problem is there are too many combinations...&lt;/p&gt;
&lt;p&gt;Here are some possible combinations:&lt;/p&gt;
&lt;p&gt;If Deployment Pref = Workstation then Target OS must contain Windows 7 (any of the 2)&lt;/p&gt;
&lt;p&gt;If Deployment Pref = Servers, and/or, and/or Autosys then Target OS must contain Server (any of the 4)&lt;/p&gt;
&lt;p&gt;If Deployment Pref = Workstation AND Servers and/or Citrix and/or Autosys then Target OS must contain Windows 7 (any of the 2) AND Server (any of the 4)&lt;/p&gt;</description></item><item><title>Re: InfoPath2010 - Multiple Selection Control - Setting values using Rules</title><link>https://www.infopathdev.com:443/forums/thread/81400.aspx</link><pubDate>Mon, 06 Aug 2012 15:49:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81400</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=81400</wfw:commentRss><description>&lt;p&gt;Hi- the issue is that when a user selects an item in a multiselect, a new instance of a repeating node is added and its value is set. When the item is deselected, the instance is removed. Since InfoPath doesn&amp;#39;t offer any out of the box rule based method to insert or delete repeating nodes, the multiselect is tricky.&lt;/p&gt;</description></item><item><title>InfoPath2010 - Multiple Selection Control - Setting values using Rules</title><link>https://www.infopathdev.com:443/forums/thread/81391.aspx</link><pubDate>Mon, 06 Aug 2012 13:07:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81391</guid><dc:creator>srudenko</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=81391</wfw:commentRss><description>&lt;p&gt;Hello all. I am new to this form and looking to see if there is a way to set values of multiple selection control in InfoPath 2010 using rules only - no code. I have tried searching on this forum and online and couldnt find a solution.&lt;/p&gt;
&lt;p&gt;My form has the following multiple selection controls:&lt;/p&gt;
&lt;p&gt;Platform:&lt;br /&gt;[] Workstation&lt;br /&gt;[] Server&lt;br /&gt;[] Citrix&lt;br /&gt;[] Autosys&lt;/p&gt;
&lt;p&gt;OS:&lt;br /&gt;[] Windows 7 32 Bit&lt;br /&gt;[] Windows 7 64 Bit&lt;br /&gt;[] Windows 2008 Server 32 Bit&lt;br /&gt;[] Windows 2008 Server 64 Bit&lt;br /&gt;[] Windows 2003 Server 32 Bit&lt;br /&gt;[] Windows 2003 Server 64 Bit&lt;/p&gt;
&lt;p&gt;What I want is that when someone checks &amp;#39;Workstation&amp;#39; in Platform, Windows 7 32 Bit should get enabled. If Server or Citrix is selected then Windows 2008 Server 32 Bit should get selected in the OS section. If Workstation and Server or Citrix or Autosys is selected in Deployment Preference then Windows 7 and Windows 2008 Server should get selected under OS.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t figure out how to do this.&lt;br /&gt;Seems like the multiple selection control is the most difficult to work with when it comes to rules.&lt;/p&gt;
&lt;p&gt;Is what I want to do even possible?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>