<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Restricted repeating sections</title><link>https://www.infopathdev.com:443/forums/thread/7721.aspx</link><pubDate>Wed, 21 Sep 2005 06:47:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7721</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7721</wfw:commentRss><description>You can also set the MaxOccurs attribute in the schema but that requires hand-editing.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Restricted repeating sections</title><link>https://www.infopathdev.com:443/forums/thread/7720.aspx</link><pubDate>Wed, 21 Sep 2005 02:23:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7720</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7720</wfw:commentRss><description>Try messing around with the OnBeforeChange event for the repeating group (go to data source &amp;gt;&amp;gt; double click on the group &amp;gt;&amp;gt; go to validation and event handlers tab &amp;gt;&amp;gt; select the OnBeforeChange event and press edit).  In the event handler, check the count and if it is too large set eventObj.ReturnStatus = false.&lt;br /&gt;&lt;br /&gt;If eventObj.IsUndoRedo = false AND eventObj.Operation = "Insert" AND CHECK COUNT HERE Then&lt;br /&gt;  'too many items&lt;br /&gt;  eventObj.ReturnStatus = false.&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Hope that works...that is what I would try...</description></item><item><title>Restricted repeating sections</title><link>https://www.infopathdev.com:443/forums/thread/4926.aspx</link><pubDate>Wed, 21 Sep 2005 00:43:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4926</guid><dc:creator>david</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4926</wfw:commentRss><description>Is there a way to restrict the number of repeating sections a user can add to a form?&lt;br /&gt;&lt;br /&gt;David</description></item></channel></rss>