<?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: Group conditions in a rule</title><link>https://www.infopathdev.com:443/forums/thread/49224.aspx</link><pubDate>Thu, 19 Nov 2009 05:33:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49224</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49224</wfw:commentRss><description>&lt;p&gt;your condition seems to be fairly simple you dont need to be editing manifest file for this&lt;/p&gt;
&lt;p&gt;myfield is not blank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/p&gt;
&lt;p&gt;string-length(myfield) &amp;lt; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/p&gt;
&lt;p&gt;mycheckbox = string(false()) and &lt;/p&gt;
&lt;p&gt;checkbox2 = string(false()))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Group conditions in a rule</title><link>https://www.infopathdev.com:443/forums/thread/49207.aspx</link><pubDate>Wed, 18 Nov 2009 19:26:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49207</guid><dc:creator>Nanette</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49207.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49207</wfw:commentRss><description>Hi guys

I am using rules on a button to do validation.  This works great.  But I also have 2 checkboxes that, if ticked, my validation should not happen.  
&lt;br /&gt;
&lt;br /&gt;
I thought of adding a rule with conditions to check if the checkboxes are ticked and if so, there is no action, I just tick &amp;quot;Stop processing rules when this rule finishes&amp;quot;.  And then I put a rule below that rule that does the validation.  This won&amp;#39;t work in my case, though, because I have other fields that need validating too, with the same rules, which would mean they never get executed, unless the first rule on the checkboxes fail.
&lt;br /&gt;
&lt;br /&gt;
So I tried using AND/OR in the conditional formatting, like so:&lt;br /&gt;
field is blank or &lt;br /&gt;
stringlength(Field) less than 4 or &lt;br /&gt;
Checkbox1 = False and &lt;br /&gt;
checkbox2 = False&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
but this doesn&amp;#39;t work.  it creates one big if statement, and I need to group some statements.  I then tried to do the grouping in the manifext.xml file by adding parenthesis around my statement groups:
&lt;br /&gt;
&lt;br /&gt;
xsf:rule caption=&amp;quot;Validate&amp;quot; condition=&amp;quot;&lt;b&gt;(&lt;/b&gt;my:myField = &amp;quot;&amp;quot; or string-length(myField) &amp;lt; 4&lt;b&gt;)&lt;/b&gt; or &lt;b&gt;(&lt;/b&gt;my:MyCheckbox = string(False()) and my:myCheckbox2 = string(false())&lt;b&gt;)&lt;/b&gt;&amp;quot; isEnabled=&amp;quot;yes&amp;quot;
&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this does not group my two statements.
&lt;br /&gt;
&lt;br /&gt;
So how can I do an if/else statement?  Or at least, group my conditional statements?  Can it be done in the manifest file?</description></item></channel></rss>