<?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: Using conditional formatting to disable submit button with repeating section</title><link>https://www.infopathdev.com:443/forums/thread/72071.aspx</link><pubDate>Tue, 15 Nov 2011 10:59:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72071</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72071</wfw:commentRss><description>&lt;p&gt;You should be able to accomplish this with an expression like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Condition:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Expression&lt;/strong&gt;: /path/to/repeating/group[&lt;strong&gt;&lt;u&gt;Disapproved&lt;/u&gt;&lt;/strong&gt; = &amp;#39;true&amp;#39; and &lt;strong&gt;&lt;u&gt;ReasonForDisapproval&lt;/u&gt;&lt;/strong&gt; = &amp;#39;&amp;#39;]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Disable the control&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Using conditional formatting to disable submit button with repeating section</title><link>https://www.infopathdev.com:443/forums/thread/72057.aspx</link><pubDate>Mon, 14 Nov 2011 23:24:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72057</guid><dc:creator>khamilton611</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=72057</wfw:commentRss><description>&lt;p&gt;I have created an InfoPath 2007 browser-enabled form.&amp;nbsp; I have the customary submit button at the bottom of the form.&amp;nbsp; I have a repeating section on this form with a few different fields.&amp;nbsp; Of note, the repeating section has a checkbox called &amp;#39;Approved&amp;#39;, a checkbox called &amp;#39;Disapproved&amp;#39;, and a text box called &amp;#39;Reason for Disapproval&amp;#39;.&lt;/p&gt;
&lt;p&gt;If &amp;#39;Disapproved&amp;#39; is checked, then the &amp;#39;Reason for Disapproval&amp;#39; text box appears; otherwise, it is hidden.&amp;nbsp; I want to have conditional formatting on the submit button for the form so that if the &amp;#39;Disapproved&amp;#39; checkbox is checked, but there is nothing in &amp;#39;Reason for Disapproval&amp;#39;, then the submit button is disabled (so, if &amp;#39;Disapproved&amp;#39; is equal to &amp;#39;Disapproved&amp;#39; AND &amp;#39;Reason for Disapproval&amp;#39; is blank, then disable the submit button control).&lt;/p&gt;
&lt;p&gt;This works fine until the user has multiple instances of the repeating section, and at least one of them has &amp;#39;Disapproved&amp;#39; checked.&amp;nbsp; Even if they enter something in the &amp;#39;Reason for Disapproval&amp;#39; textbox, the submit button will still not enable.&amp;nbsp; I suspect that submit button cannot tell the difference between the multiple instances of the repeating section, and is waiting for EACH of the text boxes to be filled in.&lt;/p&gt;
&lt;p&gt;Would someone be able to verify this for me, or please let me know how I can modify so that not all of the text boxes need to have a value in them if only one repeating section is disapproved.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>