<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Rules</title><link>https://www.infopathdev.com:443/forums/thread/98724.aspx</link><pubDate>Mon, 18 Aug 2014 14:23:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98724</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98724.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=98724</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve attached a sample form which shows an error message and disables&amp;nbsp;a control button if the number of rows&amp;nbsp;(with data) is not equal to the number of items specified in the box. To add a formatting rule,&amp;nbsp;you must click the Manage Rules located along the Home Tab,&amp;nbsp;&amp;nbsp;click on the control button or section, click New and select Formatting under the rules task pane, add a condition located at the middle portion of the rules task pane (you may follow the condition I created on the attached form), then select Hide or Disable. Note that the conditions for hiding and disabling controls are inversely proportional in order for it to work properly.&lt;br /&gt;&lt;br /&gt;The first condition I added uses a formula &lt;strong&gt;count(group2[field2 != &amp;quot;&amp;quot;]) - &lt;/strong&gt;you may set this by clicking the Use formula, use a count() function, and insert the repeating group inside the parentheses. Also, I added a filter here to make sure that the repeating field should not be blank. You may opt not to add this filter (should not be blank)&amp;nbsp;condition.&lt;br /&gt;&lt;br /&gt;The next condition I added is to make sure that the number of repeating rows should be equal/not equal (depending on the format rule) to the number specified in the box.&lt;/p&gt;</description></item><item><title>Re: Rules</title><link>https://www.infopathdev.com:443/forums/thread/98721.aspx</link><pubDate>Mon, 18 Aug 2014 12:17:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98721</guid><dc:creator>zmbaker13</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=98721</wfw:commentRss><description>&lt;p&gt;Yes the box that contains the number of devices is an integer field, what would be the steps to applying a disable rule. &lt;/p&gt;</description></item><item><title>Re: Rules</title><link>https://www.infopathdev.com:443/forums/thread/98718.aspx</link><pubDate>Mon, 18 Aug 2014 09:17:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98718</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98718.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=98718</wfw:commentRss><description>&lt;p&gt;Hi zmbaker13,&lt;br /&gt;&lt;br /&gt;This sounds do-able. May I know if the box which contains number of devices is simply an integer field? If so then you can impose a disable rule to you control buttons or field and display an error message&amp;nbsp;if box is not equal to count(RepeatingGroup). If this approach doesn&amp;#39;t work for you, kindly attach a sample of your form so I may have a clearer idea of what isn&amp;#39;t working for you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;</description></item><item><title>Rules</title><link>https://www.infopathdev.com:443/forums/thread/98667.aspx</link><pubDate>Wed, 13 Aug 2014 20:49:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98667</guid><dc:creator>zmbaker13</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=98667</wfw:commentRss><description>&lt;p&gt;I am wondering if it is possible to create a rule or something that does the following. &lt;/p&gt;
&lt;p&gt;I have a box that contains number of devices, below that i have a list of row where serial numbers are filled in. Is it possible to create a rule that looks at the number of devices and then requires that many serial numbers to be entered?&lt;/p&gt;</description></item></channel></rss>