<?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: Limiting Number of Rows in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/109434.aspx</link><pubDate>Wed, 08 Feb 2017 15:38:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109434</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109434.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109434</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Awesome - thanks for posting! :)&lt;/p&gt;</description></item><item><title>Limiting Number of Rows in a Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/109431.aspx</link><pubDate>Wed, 08 Feb 2017 13:36:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109431</guid><dc:creator>Stuart Shutts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109431</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have been researching and attempting other solutions to this issue, and I know it has been answered in the past, but I wanted to share the solution I came up with.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I created a dual approach for this, which includes allocating one of the fields in the repeat table to be an autonumber field, then placing a rule on the entire repeat table, that if &amp;#39;NumberingField&amp;#39; = (max number of rows #), then do not allow users to enter new row checkbox.&amp;nbsp; This is a simple way to do this without having to export and change the maxoccure.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font face="Times New Roman" size="3"&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;When creating repeating table, allocate a column for ‘auto number’ ; make the field a calculated field (Field1 as Example), and use this rule in the field: &lt;span style="background:yellow;mso-highlight:yellow;"&gt;count(preceding-sibling::*) + 1&lt;/span&gt;&lt;/p&gt;&lt;ul style="list-style-type:disc;direction:ltr;"&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;Create a format rule on the entire repeating table, and then put condition that ‘Field1 = 4 (The Max # of Lines that i wanted as example.)&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;Choose control ‘Don’t allow users to insert or delete this control’&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0in;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;People can add up to the maximum you want, then trying to click the button, it just won’t let them add.&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>